1/// Compares two f64 values. 2pub fn f64_cmp(v1: f64, v2: f64) -> bool { 3 let error_margin = f64::EPSILON; 4 5 (v1 - v2).abs() < error_margin 6}