[][src]Function fuzzycomp::le

pub fn le<T>(lh: T, rh: T, margin: T) -> bool where
    T: PartialOrd + Add<Output = T> + Sub<Output = T> + Copy

Not surely larger (at most equal)

Compares two f64 with a given margin. Returns true if first is not obviously lesser (despite margins).

if(fuzzycomp::le(0.0, 1.0, 0.1)) {
    println!("0 is not even 1!");
}