Equality == comparisons with floating point numbers
Joseph Rushton Wakeling
joseph.wakeling at webdrake.net
Sun Dec 8 03:54:50 PST 2013
On 08/12/13 12:13, Ali Çehreli wrote:
> I don't know whether it helps here but just to complete the picture, there is
> also std.math.feqrel:
>
> http://dlang.org/phobos/std_math.html#.feqrel
Thanks! :-) Checking the value of feqrel followed by isIdentical looks like it
might work. (OK, technically the two are telling you equivalent things, but I'd
rather have built-in redundancy of the tests than revert to approxEqual.)
More information about the Digitalmars-d-learn
mailing list