Re: Rounding problem
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21980
interpreted = N
texte = >When you use [format] to round the numbers, you are only rounding what is>being displayed. The variables are being set inside the math context, and>then their values are being rounded for display. If you want to round the>variables themselves, you'd have to do the rounding within the [math]>context:>>[math]x2=[format .2f][math]6.13*0.21[/math][/format][/math]>>-DaveThanks Dave, my calculation seems working right now.helene abarguia
Associated Messages, from the most recent to the oldest:
>When you use
[format] to round the numbers, you are only rounding what is>being displayed. The variables are being set inside the math context, and>then their values are being rounded for display. If you want to round the>variables themselves, you'd have to do the rounding within the
[math]>context:>>
[math]x2=[format .2f]
[math]6.13*0.21[/math][/format][/math]>>-DaveThanks Dave, my calculation seems working right now.helene abarguia
helene
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:
More than one db with the same namn (was: WC2f3) (1997)
Multiple catalog databases and showcart (1997)
Weird problems with [SHOWIF]s (1997)
WebCat2b13 Command Reference Doc error (1997)
Initiating NewCart (1997)
color and size options (1997)
How to add product size choices to form? (1997)
Allowed fields in formulas.db (1998)
Running 2 two WebCatalog.acgi's (1996)
Thanks for tips, more quest (1997)
[WebDNA] eCommerce in 7.0 but not in 7.1? (2012)
[WebDNA] Installing 7.1.702 on CentOS (2012)
snicker, snicker (1997)
[WebDNA] Spambots, message boards and such (2008)
Confirming a bug/oddity (2003)
Re:2nd WebCatalog2 Feature Request (1996)
Failure to document significant changes ... (2000)
Payment Processors (2005)
Large sites (2003)
Fun with dates (1997)