Re: [math] error

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 26158
interpreted = N
texte = Nevermind. It is all working fine. It was in error due to my clicking Refresh to test. I suppose this works ok for somethings and not ok for others. Thanks.At 11:51 PM 1/13/00 -0800, you wrote: >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.30 > >I 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 > *************************************************************************** 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)
Nevermind. It is all working fine. It was in error due to my clicking Refresh to test. I suppose this works ok for somethings and not ok for others. Thanks.At 11:51 PM 1/13/00 -0800, you wrote: >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.30 > >I 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 > *************************************************************************** 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:

[NT] ie 4.0 required (1997) [url] (1997) Bug or syntax error on my part? (1997) math on date? (1997) 4.5.1 on Panther? (2004) Too Much Rootbeer Free Offer (1997) RE: Clearing orders and database help! (1997) flushdatabases (1997) flushdatabases (1997) PayFlow Pro - Changing the Amount that was Authorized (2003) Running _every_ page through WebCat ? (1997) writefile to create static pages (2003) [sendmail] and [formvariables] (1997) Counting LineItems (2000) RE: IIS4b2 and WebCatalog b19 (1997) WebDNA Forum(s) should = GUI (2002) HTML Editors (1997) RequiredFields template (1997) converting tabs (1997) random .inc files pulled and placed (2002)