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.

Parameters
  • a – The first number

  • b – The second number

  • tol – An absolute tolerance

Returns

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