#include <commonUtils.hpp>
Public Member Functions | |
bool | operator() (double x, double y, double relativeTolerance=DEFAULT_REL_TOL, double absoluteTolerance=DEFAULT_ABS_TOL) const |
Additional Inherited Members | |
Static Protected Attributes inherited from bitpit::utils::DoubleFloatingComparison | |
static constexpr const double | DEFAULT_ABS_TOL = 10 * std::numeric_limits<double>::epsilon() |
static constexpr const double | DEFAULT_REL_TOL = 10 * std::numeric_limits<double>::epsilon() |
Functor to check if a floating point value compares less than another.
Definition at line 202 of file commonUtils.hpp.
|
inline |
Compares the specified double precision floating point numbers and returns true if the first value compare less than the second.
This is equaivalent to:
(x < y) AND (NOT FloatingEqual(x, y))
where FloatingEqual is the operator that compares two double precision floating point numbers.
x | if the first value to compare |
y | if the second value to compare |
relativeTolerance | is the relative tolerance that will be used to perform the comparison |
absoluteTolerance | is the absolute tolerance that will be used to perform the comparison |
Definition at line 224 of file commonUtils.hpp.