Sunday, March 27, 2016

c++ - comparing float variable








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 ?

No comments:

Post a Comment