Re: Rounding question
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45865
interpreted = N
texte = [format .2f][math][number]+.005[/math][/format]On Monday, December 2, 2002, at 12:21 AM, Dennis J. Bonsall, Jr. wrote:> 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:
[format .2f][math][number]+.005[/math][/format]On Monday, December 2, 2002, at 12:21 AM, Dennis J. Bonsall, Jr. wrote:> 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/
Clayton Randall
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:
searching by date (1998)
OS X problem: when using [ShowCart] or [orderfile]... (2000)
blank page from template (1997)
Cookie still not working (1999)
problem with applets embedded in tpl files (1997)
OT - help with filemaker - short (1999)
Latin Characters (1998)
[WebDNA] WA,WO or how to find products with multiple selects .... (2018)
Need help with emailer- 2 issues (1997)
What am I doing wrong? (2000)
security (1997)
Version f1 status (1997)
Auto-increment number, but only up to 100 then start overat 1 (2002)
WCS Newbie question (1997)
ooops...WebCatalog [FoundItems] Problem - LONG - (1997)
Imagemagick and fonts (2004)
SET and C-SET (1998)
OH CRAP!!!!!- Template not found error!!! (1999)
Ok here is a question? (1997)
PCS Frames (1997)