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 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/ Associated Messages, from the most recent to the oldest:

    
  1. Re: Rounding question (Rob Marquardt 2002)
  2. Re: Rounding question (Clayton Randall 2002)
  3. Re: Rounding question (Alain Russell 2002)
  4. Rounding question (Dennis J. Bonsall, Jr. 2002)
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/ 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:

Separate SSL Server (1997) format crash! (1997) Grep help needed (2004) WebCat for Unix?? (1997) http upload (2001) Re:no [search] with NT (1997) 'does not contain' operator needed ... (1997) WCS Newbie question (1997) [WebDNA] WebDNA app (2013) [WebDNA] Help me install (WebDNA 7 fastcgi install on Lion 10.7.3) (2012) PCS Emailer's role ? (1997) reading a email (2000) Append..... doesn't (2000) Search in 2 or more catalogs (1997) How do you TEAM Code? (2004) Locking up with WebCatalog... (1997) two contexts into one? (1999) summ=T (2003) docs for WebCatalog2 (1997) japanese characters (1997)