[math] and ceil
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 57149
interpreted = N
texte = I'm doing some discounting in my shopping cart, but the math is not working.Here's what's in my code: [format .2f][math]ceil([Price]/2)[/math][/format]When the price is $24.95, the code incorrectly outputs $13.00.24.95/2 = 12.475Rounded up, this is 12.48 not 13.00What have I done wrong?-------------------------------------------------------------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:
I'm doing some discounting in my shopping cart, but the math is not working.Here's what's in my code: [format .2f][math]ceil([Price]/2)[/math][/format]When the price is $24.95, the code incorrectly outputs $13.00.24.95/2 = 12.475Rounded up, this is 12.48 not 13.00What have I done wrong?-------------------------------------------------------------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/
Clint Davis
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:
Candle Light Vigil (2001)
[cart] tag (2000)
Help needed! (SIMS recommendation) (1998)
WebDNA Solutions ... sorry! (1997)
Intermitent problem using [referrer] (1997)
Smith Micro SUPPORT? (2000)
[isfile] ? (1997)
[date] for today's date, while inside old order file (1998)
[WebDNA] An actual attempt to get WebDNA and MAMP Pro to work - (2018)
pictures / referrer etc. (1998)
WebCat2 as a chat server? (1997)
errormessages.db (1997)
Emailer help....! (1997)
IE-caching (1998)
Web Catalog 2 demo (1997)
Almost a there but..bye bye NetCloak (1997)
WC2f3 (1997)
Summing fields (1997)
Sku numbers (1997)
Associative lookup style? + bit more (1997)