[][src]Function fuzzycomp::ge

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

Not surely smaller (at least equal)

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

if(fuzzycomp::ge(1.0, 0.0, 0.1)) {
    println!("1.0 is a at least 0, give or take!");
}