[−][src]Function fuzzycomp::gt
pub fn gt<T>(lh: T, rh: T, margin: T) -> bool where
T: PartialOrd + Add<Output = T> + Sub<Output = T> + Copy,
Surely greater (greater enough)
Compares two f64 with a given margin. Returns true if first is obviously greater (despite margins).
if(fuzzycomp::gt(std::f64::consts::PI, 3.0, 0.1)) { println!("π is more than 3!"); }