Re: strange math

This WebDNA talk-list message is from

2004


It keeps the original formatting.
numero = 56975
interpreted = N
texte = I think the first two lines show that var1 and var2 alternate between a value of 1 and a value of "space" or another invisible character or null. I would set a blank var to zero if that's what you're intending. Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 18 Mar 2004 20:43:27 +0800 To: (WebDNA Talk) Subject: Re: strange math Without the var1 and var2 values there's no way to debug it. What are these values? Are you *sure* they are always valid numbers? >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 >> >>Why don't you post your actual webdna code (no html) and then we >>can see better what's possibly wrong ... >> >>-- >> >>Kenneth Grome >>WebDNA Programmer >>Outsource Service Provider >>Phone: +6332 255-6591 >> >>------------------------------------------------------------- >>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/ >> > > >------------------------------------------------------------- >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/ -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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)
I think the first two lines show that var1 and var2 alternate between a value of 1 and a value of "space" or another invisible character or null. I would set a blank var to zero if that's what you're intending. Bill -----Original Message----- From: Kenneth Grome Sent: Thu, 18 Mar 2004 20:43:27 +0800 To: (WebDNA Talk) Subject: Re: strange math Without the var1 and var2 values there's no way to debug it. What are these values? Are you *sure* they are always valid numbers? >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 >> >>Why don't you post your actual webdna code (no html) and then we >>can see better what's possibly wrong ... >> >>-- >> >>Kenneth Grome >>WebDNA Programmer >>Outsource Service Provider >>Phone: +6332 255-6591 >> >>------------------------------------------------------------- >>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/ >> > > >------------------------------------------------------------- >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/ -- Kenneth Grome WebDNA Programmer Outsource Service Provider Phone: +6332 255-6591 ------------------------------------------------------------- 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/ ------------------------------------------------------------- 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/ devaulw@onebox.com

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:

Search or Lookup before Append (1998) WebCat2.0 [format thousands .0f] no go (1997) [ShowNext] feature in 2.0 (1997) [index] (1997) SSL with IIS 4.0 (1998) Formatting date to number (2000) [delete] problem (1997) RE: [WebDNA] WebDNA Upgrade Question - eCommerce (2009) New Cost Field (1999) Conveting Characters to Graphics (1997) checking for [ and ] in form fields ... (1997) [WC 2.1.30] Stack overflow. (2000) Country & Ship-to address & other fields ? (1997) Next X hits (1996) about this server and links to who (1997) Ok, I'm stumped (1998) Exclamation point (1997) Practice runs ? (1997) Thanks Grant (1997) Resolving variables into field names (1998)