Re: Rounding question
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45863
interpreted = N
texte = [math][format .2f]11.1811[/format]+.01[/math]Why do you want to do this ??> Is there any way, when using the [format] context, to round up the> resulting value. For instance, lets say I have a value of 11.1811.> > When used in the following format context:> > [format .2f]11.1811[/format]> > The result is 11.18, as it should be. But, is there any way I can get> that to round up to two decimal places, so that it appears as 11.19?> The [math] context has a ceil option, but it rounds up to the nearest> integer (11.1811 becomes 12).> > Thanks for the help,> > Dennis> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list
.> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
[math][format .2f]11.1811[/format]+.01[/math]Why do you want to do this ??> Is there any way, when using the [format] context, to round up the> resulting value. For instance, lets say I have a value of 11.1811.> > When used in the following format context:> > [format .2f]11.1811[/format]> > The result is 11.18, as it should be. But, is there any way I can get> that to round up to two decimal places, so that it appears as 11.19?> The [math] context has a ceil option, but it rounds up to the nearest> integer (11.1811 becomes 12).> > Thanks for the help,> > Dennis> > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Alain Russell
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Exclude by date - multiple (1997)
Saving/Looking Up customer numbers (1998)
Thanks Grant (1997)
Username/Password with [Protect] (2000)
Attention all list readers (1997)
Line items in table cells (1997)
Navigator 4.01 (1997)
typhoon... (1997)
Opinion: [input] should be called [output] ... (1997)
X Server (1999)
when is date system date or order date? (1997)
WebDNA on Red Hat Enterprise Linux 4 x64 (2006)
Whats going on with my SERIAL NUMBER??? (1998)
Use of Back and Reload Buttons on ShoppingCart page? (1997)
A Global Variable (1997)
listword db bolding {correction} (2002)
and passing to a cart (1997)
Shopping carts and reloading pages (1997)
Re:no [search] with NT (1997)
showcart (2000)