Expand description
Assertions for floating-point numbers.
Functionsยง
- assert_
relative - Asserts that the quotient of the difference between the two floats over the largest (by magnitude)
of the two floats, taken as an absolute value, is within the supplied
delta
threshold. - check_
relative - Checks whether the quotient of the difference between the two floats over the largest (by magnitude)
of the two floats, taken as an absolute value, is within the supplied
delta
threshold.