Bug?

David Goodenough dg at lakart.UUCP
Tue Oct 17 03:04:16 AEST 1989


diamond at csl.sony.co.jp (Norman Diamond) sez:
> In article <9986 at alice.UUCP> ark at alice.UUCP (Andrew Koenig) writes:
> 
>>Even if the == operator includes a fuzz factor, it's hard to imagine
>>a sensible implementation in which (a-b)==0 is true unless a and b
>>are truly identical.
> 
> Sorry Mr. Koenig, it's easy to imagine.  Every hardware floating-point
> system and most software ones have situations where (a-b)==0 but a != b.

Agreed. Also would any experts on ones complement systems like to throw
in a couple of cents? I am no expert on ones complement, but it might
be possible there. Then again, it might not be possible ..... H*ll
I don't know.
-- 
	dg at lakart.UUCP - David Goodenough		+---+
						IHS	| +-+-+
	....... !harvard!xait!lakart!dg			+-+-+ |
AKA:	dg%lakart.uucp at xait.xerox.com			  +---+



More information about the Comp.lang.c mailing list