Comparing double and float values
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu May 12 09:04:04 PDT 2011
On 5/12/11 11:00 AM, Abid H. Mujtaba wrote:
> Thanks for the answer. I guess the correct technique would be to
> define an "equality" function with a tolerance within 1e-08. I guess I
> should head over to the TDLP errata section and point out that the
> example code needs to be fixed to allow for this possibility.
Also, you may want to peruse the function approxEqual in std.math.
Andrei
More information about the Digitalmars-d
mailing list