Function statrs::prec::almost_eq[][src]

pub fn almost_eq(a: f64, b: f64, acc: f64) -> bool

Returns true if a and b are within acc of each other. If a or b are infinite, returns true only if both are infinite and similarly signed. Always returns false if either number is a NAN.