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:
CGI Request Time Out (1997)
Price problem (1997)
customizing the color of user's pages (1997)
Seeking Better Display of results... (1997)
Server slowing down. (1997)
RE: major search problem (1998)
loops (2000)
Generating Report Totals (1997)
Explorer oddities (1997)
[OT] Flash conternt only in IE? (2006)
RE: Error: template (1997)
detecting already used [cart]? (2005)
[quantity] within formulas (1997)
Ready to h[url]!!! (1999)
Nested tags count question (1997)
Forum - Test Request (2005)
question on [delete] (1998)
[WebDNA] [table] and COMMA in a Field (2015)
Re:quit command on NT (1997)
Include vs. lookup? (1998)