The best way to compare floating point values.
Ivan Kazmenko via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Feb 14 03:19:50 PST 2015
There is an approxEqual in std.math, in addition in feqrel:
http://dlang.org/phobos/std_math.html#.approxEqual
It takes maximum absolute and relative difference as arguments.
More information about the Digitalmars-d-learn
mailing list