pe_eq |
Implements predicate “approximately equal to” for two floating point numbers
int pe_eq (double u, double v);
u |
First floating point number |
v |
Second floating point number |
An operation of floating point comparison is intended to help assess the relative values of two floating point quantities. The floating point representations of u and v are approximately equal to v if and only if
where ε is equal to 16*(IEEE DBL_EPSILON). DBL_EPSILON is 2.2204460492503131E-16.
Returns 1 if u is approximately equal to v; otherwise 0