Different methods to check if two floating point values are close to each other.
Unit of Least Precision.
Relative error
ULP, with absolute error
Relative and absolute error
See Implementation
Different methods to check if two floating point values are close to each other.