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.)