Rounding question
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45857
interpreted = N
texte = Is there any way, when using the [format] context, to round up theresulting 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 getthat 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 nearestinteger (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/
Associated Messages, from the most recent to the oldest:
Is there any way, when using the [format] context, to round up theresulting 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 getthat 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 nearestinteger (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/
Dennis J. Bonsall, Jr.
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:
5.0 Preview Promotion Extension (2003)
Are you an WC expert? (1997)
WebCat2: multiple currency support (1997)
Help with number searching (1999)
syntax question, not in online refernce (1997)
setting taxable to true (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Pithy questions on webcommerce & siteedit (1997)
includes and cart numbers (1997)
Redirect to anchor (2001)
[WebDNA] HTML5 (2010)
WebCat2b12--[searchstring] bug (1997)
Server Freeze (1998)
Protect tag for large groups? (1999)
Other tags inside the founditems context? (1998)
ExclusiveLock question (2005)
price on detail, but not shoppingcart (1997)
Webcat version 4.x (2005)
PCS Frames (1997)
Summaries (1999)