On Jul 31, 2007, at 1:32 PM, peter baylies wrote:

That may not be a bad idea, but I think there's a bug in that code --
take, for example, the case where x and y both equal approximately a
million (or more).

Maybe you wanted this instead:

     return (fabs(x - y) <= EPSILON) ? 1 : 0;

The REAL question, I believe, is for comparisons to zero. Last ptc and I talked about this, there were no places where the comparison in question isn't against 0.0.

Should simplify things a lot.

xoxo,
Andy

--
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance




Reply via email to