This library provides routines for comparing two floating numbers within a user-supplied tolerance. More...
#include <limits>
Go to the source code of this file.
Namespaces | |
Numerics | |
Functions | |
double | AbsoluteValue (double a) |
Returns the absolute value of the value a. More... | |
double | ___safe_fpt_division (const double f1, const double f2) |
Performs a safe floating point division f1/f2. More... | |
bool | fpointequals (const double a, const double b, double TOL=1e-9) |
Checks if two floating numbers are "nearly" equal. More... | |
This library provides routines for comparing two floating numbers within a user-supplied tolerance.
The algorithm is based on Knuth, The Art of Computer Programming (vol II).
Definition in file FloatingPointComparisson.hpp.