[−][src]Function fuzzycomp::ne
pub fn ne<T>(lh: T, rh: T, margin: T) -> bool where
T: PartialOrd + Add<Output = T> + Sub<Output = T> + Copy,
Not equal within margin (unequal enough)
Compares two f64 with a given margin. Returns true if they are unequal enough.
if(fuzzycomp::ne(std::f64::consts::PI, 3.0, 0.1)) { println!("We need better approximation!"); }