H. S. Teoh:
The first rule of floating-point comparisons is that you never use ==.
So I suggested to disallow the == among FP numbers in D (and allow FP comparisons with "is" or with specialized functions, including one function that does what == does today).
For the original poster, for general FP comparisons I suggest std.math.feqrel, it's not fast, it's not const-correct, but it's good.
Bye, bearophile
