[Issue 15881] approxEqual Ignores maxAbsDiff

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Oct 19 05:32:48 PDT 2016


https://issues.dlang.org/show_bug.cgi?id=15881

John Colvin <john.loughran.colvin at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |john.loughran.colvin at gmail.
                   |                            |com

--- Comment #2 from John Colvin <john.loughran.colvin at gmail.com> ---
Ok, so I just ran in to this with approxEqual(2531.25, 2531) == true, which was
a latent bug hiding in my code for over a year when I thought everything was
working fine.

I would like to get some more opinions from others on this: either we change it
so both relative *and* absolute must be satisfied, or it should be very clearly
documented to only need to satisfy one of them.

--


More information about the Digitalmars-d-bugs mailing list