float equality

Kagamin spam at here.lot
Mon Feb 21 07:15:28 PST 2011


bearophile Wrote:

> 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.
> 

Is it safe to assert that noone needs exact FP comparison?


More information about the Digitalmars-d mailing list