pub fn is_within_tolerance<T>(reference: T, value: T, tolerance: T) -> bool
Expand description
Check whether a value is within tolerance of a reference value.
reference
the required valuevalue
the value to testtolerance
the permitted tolerance
return true if abs(reference - value) is <= tolerance