Template Function librapid::isClose(const mpfr&, const mpfr&, const T&)#

Function Documentation#

template<typename T>
bool librapid::isClose(const mpfr &val1, const mpfr &val2, const T &tolerance = 1e-6)#

Return true if two values are close to each other

Template Parameters

T – The type of the tolerance

Parameters
  • val1 – The first value

  • val2 – The second value

  • tolerance – The tolerance

Returns

True if the values are close to each other