pub fn is_within_tolerance<T>(reference: T, value: T, tolerance: T) -> boolExpand description
Check whether a value is within tolerance of a reference value.
referencethe required valuevaluethe value to testtolerancethe permitted tolerance
return true if abs(reference - value) is <= tolerance