Skip to main content

Module assert_f32_eq

Module assert_f32_eq 

Source
Expand description

Assert a floating point 32-bit number is equal to another within f32::EPSILON.

Pseudocode:
a = b

§Example

use assertables::*;

let a: f32 = 1.0 / 3.0;
let b: f32 = 0.3333333;
assert_f32_eq!(a, b);

§Module macros