ulp.js 464 B

123456789101112
  1. "use strict";
  2. /*
  3. * This is a TypeScript port of the original Java version, which was written by
  4. * Gil Tene as described in
  5. * https://github.com/HdrHistogram/HdrHistogram
  6. * and released to the public domain, as explained at
  7. * http://creativecommons.org/publicdomain/zero/1.0/
  8. */
  9. Object.defineProperty(exports, "__esModule", { value: true });
  10. const ulp = (x) => Math.pow(2, Math.floor(Math.log2(x)) - 52);
  11. exports.default = ulp;
  12. //# sourceMappingURL=ulp.js.map