@antv/util
Version:
> AntV 底层依赖的工具库,不建议在自己业务中使用。
9 lines • 364 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var PRECISION = 0.00001; // numbers less than this is considered as 0
function isNumberEqual(a, b, precision) {
if (precision === void 0) { precision = PRECISION; }
return Math.abs(a - b) < precision;
}
exports.default = isNumberEqual;
//# sourceMappingURL=is-number-equal.js.map