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)[/m ath][/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:

    
  1. Re: inconsistent webcat calculation? (Grant Hulbert 1997)
  2. inconsistent webcat calculation? (w curt eggemeyer 1997)
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)[/m ath][/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:

Help name our technology! (1997) Decimal point in search.... (2004) Showif, Hideif reverse logic ? (1997) The USArea® Network web site ... (1997) Dubble Sku's in a Database (1999) Resume Catalog ? (1997) THANKS!!! ShipCosts.db and debugging (1997) expired beta (1997) WebCat b13 CGI -shownext- (1997) IE-caching (1998) Custom error files (1998) WebDNA processes only one page at a time? (2002) Customizing WebDelivery.html (1998) Nested tags count question (1997) convertWords... NEW (2001) Pls Remove me from all Lists (1998) [append] vs. [appendfile] delta + question? (1997) Associative lookup style? + bit more (1997) WebCat2b13MacPlugIn - [include] doesn't allow creator (1997) ReadDateFormat bug in 3.x (1998)