float comparison

bearophile bearophileHUGS at lycos.com
Sat Aug 25 04:02:43 PDT 2012


Jonathan M Davis:

> Comparing floating point numbers with == is almost always the 
> wrong thing to do.

The second part of the answer is a suggestion to use 
std.math.feqrel.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list