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:
[shownext max=?] armed (1997)
Emailer setup (1997)
WebCatalog-NT?'s (1996)
price totals (2003)
WebCat2 - Getting to the browser's username/password data (1997)
Search results templates (1996)
Auto entering Friday's date in a field (2002)
Generating unique SKU from [cart] - Still Stumped... (1997)
Trouble with formula.db (1997)
TRAINING videos - Prove IT. (1998)
Problem with a search context (2005)
[WebDNA] 30 Minute Cookies (2016)
Checking for pre-existing passwords (1998)
Ok here is a question? (1997)
Problems with [Applescript] (1997)
Changes to the List (1997)
WebCat with WebTen (1998)
Another bug to squash (WebCat2b13 Mac .acgi) (1997)
[UPPERCASE] (1997)
PCS Emailer's role ? (1997)