1/// Compares two f32 values. 2pub fn f32_cmp(v1: f32, v2: f32) { 3 let error_margin = f32::EPSILON; 4 5 assert!((v1 - v2).abs() < error_margin) 6}