On 12/24/2017 02:10 AM, kerdemdemir wrote: > if ( fabs(diff) < 0.00000001 ) I can't answer your question but I know that the comparison above is wrong because it can be meaningful only if the values are sufficiently larger than that hard-coded value. I think feqrel() will be useful there: https://dlang.org/phobos/std_math.html#.feqrel Ali