[][src]Function fuzzycomp::lt

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

Surely less (less enough)

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

if(fuzzycomp::lt(std::f64::consts::PI, 4.0, 0.5)) {
    println!("π is a lot less than 3!");
}