inconsistent webcat calculation?
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 15005
interpreted = N
texte = I think we are running version 2.01, but I'm not sure. Inside a template we get to via a search action, we have an inner search loop in which I generate a summary table of order information. Before, I had the following formulas for summing the total:[format 8.2f][subtotal][/format] [format 7.2f][math][shipcost]*fracweight[/math][/format] [format 8.2f][math][tax]*fraction[/math][/format] [format 10.2f][math]tmptotal=[subtotal]+([tax]*fraction)+([shipcost]*fracweight)[/math][/format] which I simplified by adding two local [math] variables and it works:[format 8.2f][subtotal][/format][format 7.2f][math]vartmp=[shipcost]*fracweight[/math][/format][format 8.2f][math]tmpvar=[tax]*fraction[/math][/format][format 10.2f][math]tmptotal=[subtotal]+vartmp+tmpvar[/math][/format]Just out of curiosity is there something bogus about the former way I did it?Curt----------------------------------------------------------------------| William Curt Eggemeyer Curt@mail.bzzzzzz.com || BeeHive Technologies, Inc. || http://www.bzzzzzz.com with a WebCam in Pasadena, California |----------------------------------------------------------------------
Associated Messages, from the most recent to the oldest:
I think we are running version 2.01, but I'm not sure. Inside a template we get to via a search action, we have an inner search loop in which I generate a summary table of order information. Before, I had the following formulas for summing the total:[format 8.2f][subtotal][/format] [format 7.2f]
[math][shipcost]*fracweight[/math][/format] [format 8.2f]
[math][tax]*fraction[/math][/format] [format 10.2f]
[math]tmptotal=[subtotal]+([tax]*fraction)+([shipcost]*fracweight)[/math][/format] which I simplified by adding two local
[math] variables and it works:[format 8.2f][subtotal][/format][format 7.2f]
[math]vartmp=[shipcost]*fracweight[/math][/format][format 8.2f]
[math]tmpvar=[tax]*fraction[/math][/format][format 10.2f]
[math]tmptotal=[subtotal]+vartmp+tmpvar[/math][/format]Just out of curiosity is there something bogus about the former way I did it?Curt----------------------------------------------------------------------| William Curt Eggemeyer Curt@mail.bzzzzzz.com || BeeHive Technologies, Inc. || http://www.bzzzzzz.com with a WebCam in Pasadena, California |----------------------------------------------------------------------
w curt eggemeyer
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:
Avery 5160 Mailing Labels SOLVED (2003)
Problems passing [SKU] with $Replace in 2.0 (1997)
email database file (2005)
RePost: NAT and the CART (1999)
Search/sort in URL Was: GuestBook example (1997)
For those of you not on the WebCatalog Beta... (1997)
WebCat2: multiple currency support (1997)
Upgrade to 4.0 (2001)
&max= (2003)
Image upload *CODE SAMPLE* (2000)
Multiple security dbs (1997)
WebCat2b12 - nesting [tags] (1997)
[WebDNA] Mondy morn... [date] question (2009)
Not really WebCat- (1997)
READFILE command? (1998)
writefile - continued (1997)
Problems setting MIME Headers (1998)
(OFF TOPIC) System 8.5.1 FINDER ERROR (1999)
Exclamation point (1997)
expired beta (1997)