Testing module

near

procedure · 1 overloadsince 0.30.0Source

|value - want| <= tolerance. NaN is never near anything.

near :: (want: float64, tolerance: float64) -> Matcher

|value - want| <= tolerance. NaN is never near anything.

Parameters

want: float64
the value to be close to.
tolerance: float64
the largest allowed difference.

Returns

See also