Serious bug

Richard Hadsell hadsell@blueskystudios.com
Tue Sep 29 07:10:00 GMT 1998


Kamil Iskra wrote:
> 
> Not to me. I was taught NEVER to use == or != with floating point, because
> they simply don't make sense. Too bad that C[++] standard allows them.

I don't want to replace (x == 0.) by (x < 0. ? (x > -DBL_MIN) : (x <
DBL_MIN)) for the simple cases (e.g., I assigned 0. to x earlier, did
some other stuff which may have altered x, and now I want to see if x
was altered).  I want the compiler to take care of that for me.  My
experience says that most compilers do.  Don't bother telling me my
expectations are too high.

-- 
Dick Hadsell			914-381-8400 x5446 Fax: 914-381-9790
Reply-to:			hadsell@blueskystudios.com
Blue Sky | VIFX                 http://www.bluesky-vifx.com
1 South Road, Harrison, NY 10528



More information about the Gcc mailing list