Skip to main content

is_close

Function is_close 

Source
pub fn is_close(a: f64, b: f64, atol: f64, rtol: f64) -> bool
Expand description

Check whether two values are within tolerance: |a - b| <= atol + rtol * |b|.