Function rcppsw::math::is_equal
Defined in File math.hpp
Function Documentation
-
static inline bool rcppsw::math::is_equal(double lhs, double rhs, double tol = kDOUBLE_EPSILON)
Determine if two floating point values are equal, using the specified tolerance. You can’t always use std::numeric_limits<double>::epsilon() because of floating point representation errors.