[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:
Flash Applications (2003)
Pixo support? (1998)
WebCatalog f2 Installation (1997)
Help! WebCat2 bug (1997)
final on include (1997)
setting taxable to true (1997)
encrypt (2000)
[WebDNA] Format Days_To_Date (2008)
international time (1997)
[WebDNA] Attack? (2015)
SetHeader not Working (2006)
Help formatting search results w/ table (1997)
database size? (1997)
[delete] problem (1997)
FORMS: Returning a specific page (1997)
RE: Problems with shopping cart (1997)
Problem (1997)
syntax question, not in online refernce (1997)
who are you people (1998)
b18 problem on NT 4.0 (1997)