isIn01WithTolerance MethodStatic

Test if x is in the interval [0,1] for a given tolerance.

isIn01WithTolerance(x: number, tolerance: number): boolean

Parameter Type Description
x number value to test.
tolerance number allowable distance outside the interval within which to classify x as inside.

Returns - boolean

Defined in

Last Updated: 14 November, 2024