Note that both 0.0 and -0.0 are distinct values. Should both be false? Should they be equal to each other?
/ Henrik Grubbström (Lysator)
Previous text:
2003-09-15 22:07: Subject: Re: float type weirdness
Comparing floats in general with == is often bogus, but 0.0 is a special case; division shows that there is a distinct difference between zero and approximately zero, and 0.0 is not just approximately zero.
/ Martin Stjernholm, Roxen IS