Re: Rounding question
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45868
interpreted = N
texte = on 12/1/02 11:21 PM, Dennis J. Bonsall, Jr. at dbonsall@webbuilders.com sonoted...> 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).[math]ceil(11.1811*100)/100[/math]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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:
on 12/1/02 11:21 PM, Dennis J. Bonsall, Jr. at dbonsall@webbuilders.com sonoted...> 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).[math]ceil(11.1811*100)/100[/math]Rob MarquardtDesigner/Resident WireheadToast Design800 Washington Avenue NorthMinneapolis MN 55401612.330.9863 v612.321.9424 fwww.toastdesign.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/
Rob Marquardt
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:
b12 cannot limit records returned and more. (1997)
[subTotal] pricefield in another database It#180#s not working!? (1998)
Problem with broken images (2004)
Cart doesn't interpret tag! (1997)
[WebDNA] 301 redirect (2016)
Image Upload and Auto Resize? (2003)
Frames and WebCat (1997)
Re:Password Authentication - request example (1998)
Add a Blog to your site. (2002)
OT - Friday afternoon Fun with Toys (2002)
automating a POST (2002)
-tmp files (2000)
creating a ShipCosts database (1997)
WebCat2 - [SendNews] (1997)
Comments in db? (1997)
Multiple Stores and WebCatalog Prefs (1997)
Ampersand (1997)
email messages (1997)
Help w/ Duplicating The General Store 5 times. (1997)
Test (2003)