Bug?

Andrew Koenig ark at alice.UUCP
Sun Oct 1 23:08:26 AEST 1989


In article <14758 at bfmny0.UU.NET>, tneff at bfmny0.UU.NET (Tom Neff) writes:

> Specifically, if the C floating point equality operator automatically
> corrected for the fuzz factor, how would you write a C program to
> test the fuzz factor?

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.
-- 
				--Andrew Koenig
				  ark at europa.att.com



More information about the Comp.lang.c mailing list