re: How to correctly compare floating point numbers for equality VIEW POST

VIEW PARENT COMMENT VIEW FULL DISCUSSION
 

They sure do. C defines the values of ε for float, double, and long double floating point types in the standard header float.h as the constants FLT_EPSILON, DBL_EPSILON, and LDBL_EPSILON.

code of conduct - report abuse