UNPKG

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