float equality

bearophile bearophileHUGS at lycos.com
Sat Feb 19 04:52:06 PST 2011


Jonathan M Davis:

> The thing is, of course, that actual equality sucks for floating point values. 

So much, that some people have proposed to deprecate the normal FP equality. MISRA-C disallows them. When you see a == among FP values is often a code smell.

Bye,
bearophile


More information about the Digitalmars-d mailing list