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:
Card clearance, problems - solutions? (1997)
[WebDNA] Problem with [ListDatabases] - WebDNA CE 6.0a - Windows IIS 5.1 - Windows XP Pro Dev Box (2010)
Still Stumped on ShowNext...HELP! (1997)
Nested tags count question (1997)
PHP vs. WebDNA (2003)
executing via commandline (2003)
[shownext max=?] armed (1997)
Re[2]: Re[2]: WebCatalog keeps quiting on Solaris, and suppo (2000)
show all problem (1997)
Integration with SQL (1997)
no [search] with NT (1997)
Thanks ! (1997)
'page impression' techniques for banner ads (1999)
form crasehes server (1997)
using showpage and showcart commands (1996)
WebCat2.0 acgi vs plugin (1997)
Summing fields (1997)
Grouping fields help (2004)
Netscape 3.01 can't see db in form (was problems problemsproblems) (1997)
TCPConnect to query for Domain expiration (2000)