[math] error

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26157
interpreted = N
texte = I am using the following two equations throughout a Grocer's site. Both equations are being generated from the OrderFile...obviously. The first one works, the second one doesn't.$[format 100.2f][math]SubTotalFigure=[lineitems][Quantity]*[showif [Location]=Fresno][FresnoPrice][/showif][showif [Location]=Hanford][HanfordPrice][/showif]+[/lineitems]0[/math][/format] $[format 100.2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][/for mat]With 5 sodas at .05 each and 1 soda at .05 (CRV) each, the above equation gives me a total of 0.95, but it should be 0.30I am also writing all of the purchased items to a database in order to generate reports after the fact. From the database, the following equation (same basic concept) also gives me an error...but a different one.$[format 100.2f][math]CRVFigure=[search db=/blah/blah/blah/s4fpurchased.txt&eqCartdatarq=[Cart]&neDelivereddatarq=ND ][founditems][Quantity]*[CRV]+[/founditems][/search]0[/math][/format]All of the equations appear to have the same basic format, at least to me anyway...any ideas?? I have also tried the following without success...[math][lineitems]([Quantity]*[CRV])+[/lineitems]0[/math]*************************************************************************** What you are speaks so loud that I cannot hear what you say. - Ralph Waldo Emerson (1803-1882) - Philosopher and Writer - ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Associated Messages, from the most recent to the oldest:

    
  1. Re: [math] error (Kim Ingram 2000)
  2. [math] error (Kim Ingram 2000)
I am using the following two equations throughout a Grocer's site. Both equations are being generated from the OrderFile...obviously. The first one works, the second one doesn't.$[format 100.2f][math]SubTotalFigure=[lineitems][Quantity]*[showif [Location]=Fresno][FresnoPrice][/showif][showif [Location]=Hanford][HanfordPrice][/showif]+[/lineitems]0[/math][/format] $[format 100.2f][math]CRVFigure=[lineitems][Quantity]*[CRV]+[/lineitems]0[/math][/for mat]With 5 sodas at .05 each and 1 soda at .05 (CRV) each, the above equation gives me a total of 0.95, but it should be 0.30I am also writing all of the purchased items to a database in order to generate reports after the fact. From the database, the following equation (same basic concept) also gives me an error...but a different one.$[format 100.2f][math]CRVFigure=[search db=/blah/blah/blah/s4fpurchased.txt&eqCartdatarq=[cart]&neDelivereddatarq=ND ][founditems][Quantity]*[CRV]+[/founditems][/search]0[/math][/format]All of the equations appear to have the same basic format, at least to me anyway...any ideas?? I have also tried the following without success...[math][lineitems]([Quantity]*[CRV])+[/lineitems]0[/math]*************************************************************************** What you are speaks so loud that I cannot hear what you say. - Ralph Waldo Emerson (1803-1882) - Philosopher and Writer - ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Kim Ingram

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:

Need some extra eyes (2003) Emailer help....! (1997) [Webcat 2]Next (1997) Apache SSL and Linux (2002) how do we turn off staticpages page creation? (2003) Webcat and WebStar V (2001) Where is eudora plugin? (1998) RE: shrink-wrapped version out yet? (1997) Using Applescript to process WebCatalog functions (1998) Bug Report, maybe (1997) WebCatalog Hosting (1996) Help wanted (1998) Installation webCatalog (French speakers please help) (1998) Need formum software... (2003) Showif, Hideif reverse logic ? (1997) parsing multiple xml files... (2004) Random Number Generator works for Ranges of Numbers (1997) Exclamation point (1997) WebDNA 5.0 freeBSD?!!? (2003) Missing something simple?? (1998)