- Something I came across today that I didn't know before: Chipmunk BASIC treats zero differently from minus zero and stores them differently in memory.
E.g. the statements:
x=0 : print x; "and "; str$(x)
x=-0 : print x; "and "; str$(x)
Give the output:
0 and 0
-0 and -0
Comfortingly, "if x=0" is true for both 0 and -0
I don't know if -0 can be generated from arithmetic or whether it can only come from direct assignment (as above) or by reading input.