Float compare broke!

David d at dav1d.de
Mon Jun 11 09:42:56 PDT 2012


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


More information about the Digitalmars-d-learn mailing list