is-number-equal.js 368 B

12345678910
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: 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