Crate approx_eq

Source

Modules§

approx_eq
Macro to test that two values are approximately equal. It checks that the relative difference between the two values is less than some epsilon value.

Macros§

assert_approx_eq
Epsilon takes a default value of 1e-6. It is also possible to specify the error level to use.

Functions§

rel_diff
Function to find the relative difference between two values.