
14 May
2005
14 May
'05
4:31 p.m.
"Jacques Carette"
Since +0 and -0 both exist as separate 'entities' (as computer bits), which are their own normal form, the real question to ask is, why would they be equal?
Because (1.0 - 1.0) == -(1.0 - 1.0) should be true. In general arithmetic on integers which are representable in floating point is exact, including checking for equality. -- __("< Marcin Kowalczyk \__/ qrczak@knm.org.pl ^^ http://qrnik.knm.org.pl/~qrczak/