Re: strange math

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56973
interpreted = N
texte = Perhaps you have an anomaly because math breaks when adding space or null to 1. I'm guessing that the anomaly varies depending on whether the null value precedes or follows the number in the operation. You could set the null or space value to zero. I think there was also a similar question here in the last few months. I would check the archive for recent posts with "math" in the message text. > code: > > var1=[var1]
> var2=[var2]
> total= [math][var1]+[var2][/math]
> total2= [math][var2]+[var1][/math] > > results are: > > var1=1 > var2= > total= > total2= 1 > > or: > > var1= > var2=1 > total=1 > total2= > > or: > > var1=1 > var2=1 > total=2 > total2=2 > > shouldn't the last 2 lines of code always provide the same result no > matter what order they are listed inside the [math][/math] tags? > > > > > On Thursday, March 18, 2004, at 07:12 AM, Kenneth Grome wrote: > >>> Thanks Kenneth, but the space before var2 was just a typo in the >>> e-mail. >>> There is no space in the actual code of the file. >>> The code is still not adding, should I be initializing the variables >>> somehow? >>> thanks, >>> sfb ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Strange MATH result (Stuart Tremain 2010)
  2. Re: [WebDNA] Strange MATH result (JJ WebDNA 2010)
  3. Re: [WebDNA] Strange MATH result - BUG (Govinda 2010)
  4. Re: [WebDNA] Strange MATH result (christophe.billiottet@webdna.us 2010)
  5. Re: [WebDNA] Strange MATH result (christophe.billiottet@webdna.us 2010)
  6. Re: [WebDNA] Strange MATH result - BUG (Stuart Tremain 2010)
  7. Re: [WebDNA] Strange MATH result - BUG (Govinda 2010)
  8. Re: [WebDNA] Strange MATH result (Stuart Tremain 2010)
  9. Re: [WebDNA] Strange MATH result (Govinda 2010)
  10. Re: [WebDNA] Strange MATH result - BUG (Stuart Tremain 2010)
  11. [WebDNA] Strange MATH result (Stuart Tremain 2010)
  12. Re: strange math ( Brian Fries 2004)
  13. Re: strange math ( devaulw@onebox.com 2004)
  14. Re: strange math ( "BRAUN, STEPHEN" 2004)
  15. Re: strange math ( devaulw@onebox.com 2004)
  16. Re: strange math ( Kenneth Grome 2004)
  17. Re: strange math ( William DeVaul 2004)
  18. Re: strange math ( sbraun 2004)
  19. Re: strange math ( Kenneth Grome 2004)
  20. Re: strange math ( sbraun 2004)
  21. Re: strange math ( Kenneth Grome 2004)
  22. strange math ( sbraun 2004)
Perhaps you have an anomaly because math breaks when adding space or null to 1. I'm guessing that the anomaly varies depending on whether the null value precedes or follows the number in the operation. You could set the null or space value to zero. I think there was also a similar question here in the last few months. I would check the archive for recent posts with "math" in the message text. > code: > > var1=[var1]
> var2=[var2]
> total= [math][var1]+[var2][/math]
> total2= [math][var2]+[var1][/math] > > results are: > > var1=1 > var2= > total= > total2= 1 > > or: > > var1= > var2=1 > total=1 > total2= > > or: > > var1=1 > var2=1 > total=2 > total2=2 > > shouldn't the last 2 lines of code always provide the same result no > matter what order they are listed inside the [math][/math] tags? > > > > > On Thursday, March 18, 2004, at 07:12 AM, Kenneth Grome wrote: > >>> Thanks Kenneth, but the space before var2 was just a typo in the >>> e-mail. >>> There is no space in the actual code of the file. >>> The code is still not adding, should I be initializing the variables >>> somehow? >>> thanks, >>> sfb ------------------------------------------------------------- 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 Web Archive of this list is at: http://webdna.smithmicro.com/ William DeVaul

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:

[OT] Disable/enable field (2003) Emailer setup (1997) Wanted to buy: WebDNA 6 license (2007) Just a thought (1998) error: Too many nested [xxx] contexts (1997) [WebDNA] Processor Maxing out (2010) [searchString] (1997) Smart caching problems with 2.1b3? (1997) AOL and referrers on target=_blank (2000) F*** you (1998) [WebDNA] paypal (2009) Separate SSL Server (1997) When to use [convertchars] ?!?!? (2000) More than one db with the same namn (was: WC2f3) (1997) WebCat2: Items xx to xx shown, etc. (1997) Works! (1997) Nested tags count question (1997) WebCatalog not running after upgrade (2000) [WebDNA] WebDNA not running after 10.6.3 update (2010) Nesting format tags (1997)