Checks if the two values are within the given tolerance
of each other.
name | type | description |
---|---|---|
a | number |
The first value to use in the calculation. |
b | number |
The second value to use in the calculation. |
tolerance | number |
The tolerance. Anything equal to or less than this value is considered as being within range. |
Returns true
if a
is less than or equal to the tolerance of b
.