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

Reply via email to