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:
possible, WebCat2.0 and checkboxes-restated (1997)
A little help on e-mail (HELP!!! :-) ) (1998)
Forms (1997)
Verifying both name and password (was: THANKS) (1997)
Serving .wml pages to WAP via webcat (2000)
RE: [redirect] w/o showing args? (1999)
search engine friendly URLS (Mac) and Lycos! (1998)
Not really WebCat- (1997)
Help! WebCat2 bug (Ben's input) (1997)
Document Contains No Data! (1997)
RE: Error: template (1997)
anyone on the list work with Generator and WebCat together? (1999)
Mac: LModelDirector bug fix (1997)
Mozilla/4. and Browser Info.txt (1997)
WebDNA for Dummies (2004)
WebCatalog & Mac OS X (client) vs. Redhat Linux (2001)
Showif (2000)
A question on sub-categories (1997)
Adding a month and the 31st (bug?) (2002)
[UPPERCASE] (1997)