Comparing double and float values

Abid H. Mujtaba abid.naqvi83 at gmail.com
Thu May 12 09:36:13 PDT 2011


The website defines the signature for feqrel to be:

int feqrel(X)(X x, X y);

It requires x and y to be the same type. But the variables we are
working with are NOT the same type. This is what started the whole
debate in the first place. I tested approxEqual and it works. Just
have to be careful with the precision one uses.


More information about the Digitalmars-d mailing list