1 | ;
|
2 | exports.__esModule = true;
|
3 | var PRECISION = 0.00001; // numbers less than this is considered as 0
|
4 | function isNumberEqual(a, b, precision) {
|
5 | if (precision === void 0) { precision = PRECISION; }
|
6 | return Math.abs((a - b)) < precision;
|
7 | }
|
8 | exports["default"] = isNumberEqual;
|
9 | ;
|
10 | //# sourceMappingURL=is-number-equal.js.map |
\ | No newline at end of file |