This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Serious bug
- To: Kamil Iskra <kamil at dwd dot interkom dot pl>
- Subject: Re: Serious bug
- From: Richard Hadsell <hadsell at blueskystudios dot com>
- Date: Tue, 29 Sep 1998 10:09:33 -0400
- CC: egcs at cygnus dot com
- Organization: Blue Sky | VIFX
- References: <Pine.LNX.3.96.980929130733.901F-100000@jinks.home>
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