Crate flanker_assert_float
source ·Expand description
Assertions for floating-point numbers.
Functions
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.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.