Always false float comparisons

Nordlöw via Digitalmars-d digitalmars-d at puremagic.com
Mon May 9 23:59:38 PDT 2016


On Monday, 9 May 2016 at 12:29:14 UTC, Temtaime wrote:
> Just get rid of the problem : remove == and != from floats.

Diagnostics Suggestion:

Issue a warning including a direction to approxEqual()

https://dlang.org/phobos/std_math.html#.approxEqual


More information about the Digitalmars-d mailing list