Float compare broke!

David d at dav1d.de
Mon Jun 11 10:29:03 PDT 2012


Am 11.06.2012 18:42, schrieb David:
> Am 11.06.2012 16:47, schrieb bearophile:
>> Adam D. Ruppe:
>>
>>> This function should help:
>>> http://dlang.org/phobos/std_math.html#approxEqual
>>
>> This is better:
>> http://dlang.org/phobos/std_math.html#feqrel
>>
>> Bye,
>> bearophile
>
>
> Wasn't there a bug with feqrel?
>
> I think so, that's the reason why I implemented almost_equal in gl3n:
> https://github.com/Dav1dde/gl3n/blob/master/gl3n/math.d#L80

Found it:

Fixed: http://d.puremagic.com/issues/show_bug.cgi?id=5089



More information about the Digitalmars-d-learn mailing list