Possible Duplicate:
Most effective way for float and double comparison
How dangerous is it to compare floating point values?
I have const float M = 0.000001;
and float input;
. I want to not equality check on them. But I know direct check has side effect M != input
. So, my question how I can compare two float value without side effect ?