macro_rules! assert_eq_f32 {
($a:expr, $b:expr $(,)?) => { ... };
}Expand description
assert_eq_f32: assert that two floating point numbers are within 2.0 * f32::EPSILON.
ยงExample
#[macro_use]
use numeric_statistics::assert_eq_f32;
let a: f32 = 0.333333333;
let b: f32 = 1.0 / 3.0;
assert_eq_f32!(a, b);