On Mon, Aug 20, 2007 at 05:26:22PM -0400, Andy Dougherty wrote:

> Nor can I.  Thus you either use lots of platform-specific code (determined
> by Configure.pl) or turn off gcc's -Wfloat-equal warning flag and just
> write f == 0.0.

Or, maybe

    f >= 0.0 && f <= 0.0

which I believe is identical, even in the face of NaNs.

Nicholas Clark

Reply via email to