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:
can WC render sites out? (1997)
WebCat B13 Mac CGI -- Frames question (1997)
Sendmail truncation in Eudora Clients (1998)
WebCat2 several catalogs? (1997)
How is it done? (1998)
[WebDNA] WebDNA licenses discount from 12/23 to 12/31 (2011)
Nested tags count question (1997)
Writefile, Raw & include (2002)
ErrorMessages.db suggestion (1997)
ShipCosts database (1997)
WebCat2b13MacPlugIn - More limits on [include] (1997)
Can I do this with [grep]? (2002)
Security Issue (1997)
displaying 12 results 4 by 3 (2000)
Sorting by date (1997)
WebSTAR 2.1 freezes my Mac (1997)
Location of Browser Info.txt file (1997)
WebDNA Solutions ... sorry! (1997)
DataBaseHelper Flawed (1997)
b12 cannot limit records returned and more. (1997)