by the way, in general you might look into the std::numeric_limits\<float\>::epsilon() in C++ (http://www.cplusplus.com/reference/limits/numeric_limits/) or FLT_EPSILON in \<float.h\> (or \<cfloat\> in C++)