Skip to main content

approximately

Function approximately 

Source
pub fn approximately(x: f64, target: f64, tol: f64) -> f64
Expand description

“≈ target” with tolerance tol: a symmetric triangle peaking at target, reaching 0 at target ± tol. tol <= 0 is a crisp equality.