Is comparing against 0.0 safe?

Stephen L Moshier moshier@mediaone.net
Wed Feb 16 11:12:00 GMT 2000


> Is comparing against 0.0 safe?
Certainly not!
The program that Beebe posted last December to this list is a counterexample.

> -Wfloat-equal
Sounds pretty useless.  The programmer better be smarter than
the compiler about this, or else ask somebody for help.






More information about the Gcc mailing list