CODE
2-1 == 2
2 - 1 == 1
note the white space in the second but not the first. No problem when one of them is a variable.
These forums are CLOSED. Please visit the new forums HERE
Math error depends on whitespace |
|
Strife Onizuka
Moonchild
![]() Join date: 3 Mar 2004
Posts: 5,887
|
04-24-2004 09:47
CODE
note the white space in the second but not the first. No problem when one of them is a variable. _____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river. - Cyril Connolly Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence. - James Nachtwey |
Azelda Garcia
Azelda Garcia
Join date: 3 Nov 2003
Posts: 819
|
04-24-2004 10:24
Yeah, theres a known bug in the compiler with minus signs ('-'). You gotta surround them with spaces.
|
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
|
04-26-2004 17:08
http://www.badgeometry.com/wiki/KnownBugs
There's a good explanation of that compiler bug, somethings making the compiler think the "2-1" is a variable name, rather then an equation. Spaces between operators is my rule of thumb, IMO it helps tons with readability. ==Chris |