On Mon, Sep 15, 2003 at 04:20:05PM -0400, Henrik Grubbstrцm (Lysator) @ Pike (-) developers forum wrote:
Note that both 0.0 and -0.0 are distinct values. Should both be false? Should they be equal to each other?
There is no -0.0 in arithmetic, actually -0.0 is computer artifact (the result of dedicated bit for sign) and usually may not be used directly (string to value conversion usually will not allow this).
It _might_ happen when very small value is misinterpeted as -0.0 on output, due to format conversion limitation, but that's different story.
So, they should be equal to each other and to the integer 0 as well.
IMHO :)
Regards, /Al