15 May
2005
15 May
'05
12:31 a.m.
"Jacques Carette" <carette@mcmaster.ca> writes:
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/