Function Utils::isEqual
Defined in File utils.h
Function Documentation
-
bool Utils::isEqual(const double a, const double b, const double tol = 1e-6, const double percent = (1 - 1e-4))
Checks if two numbers are equal in either absolute or relative tolerance.
- Parameters
a – The first number
b – The second number
tol – An absolute tolerance
percent – Percent of similarity (e.g., 1 and 0.99 are similar at least at 0.99)
- Returns