pub fn within_tolerance(value: f64, tolerance: f64) -> bool
Check whether quantizing value to f32 stays within tolerance.
value
Returns true if |value - (value as f32) as f64| <= tolerance.
true
|value - (value as f32) as f64| <= tolerance