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 nullto 1. I'm guessing that the anomaly varies depending on whether the nullvalue precedes or follows the number in the operation.You could set the null or space value to zero. I think there was also asimilar question here in the last few months. I would check the archive forrecent 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:
Perhaps you have an anomaly because math breaks when adding space or nullto 1. I'm guessing that the anomaly varies depending on whether the nullvalue precedes or follows the number in the operation.You could set the null or space value to zero. I think there was also asimilar question here in the last few months. I would check the archive forrecent 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:
Help name our technology! I found it (1997)
PCS Emailer's role ? (1997)
Setting up shop (1997)
What might be the cause for a hicup (2000)
Include a big block of text (1997)
[LOOKUP] (1997)
I've been framed by webcatalog! Does anyone know the way out? (2000)
[WebDNA] Fun With WebDNA (2013)
japanese characters (1997)
Format all of a sudden doesn't work (1997)
A question on sub-categories (1997)
How to search dbs across virtual hosts for same domain? (2003)
Shownext never shows next...still (1997)
emailer (1997)
Stopping bad HTML propagation ? (1997)
Attention SMSI - DOCS Error (2004)
[WriteFile] problems (1997)
creator code (1997)
Setting up shop (1997)
Running 2 two WebCatalog.acgi's (1996)