fuzzyEqual(a, b, epsilon) → {boolean}
Two number are fuzzyEqual if their difference is less than epsilon.
Parameters
Name | Type | Argument | Default | Description |
---|---|---|---|---|
a | number | The first number to compare. | ||
b | number | The second number to compare. | ||
epsilon | number | <optional> | 0.0001 | The epsilon (a small value used in the calculation) |
Returns
boolean -
True if | a-b | <epsilon
- Source code: math/Math.js (Line 40)
Please login to continue.