Function Utils::isEqualAbs

Function Documentation

bool Utils::isEqualAbs(const double a, const double b, const double tol = 1e-6)

Checks if two numbers are equal in absolute tolerance.

  • a – The first number

  • b – The second number

  • tol – An absolute tolerance


True if the two numbers are equal up to the given tolerance