NET-Web-API-w-Angular/my-app/node_modules/hdr-histogram-js/dist/ulp.spec.js

12 lines
442 B
JavaScript
Raw Normal View History

2024-02-09 00:38:41 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const ulp_1 = require("./ulp");
describe("math ulp helper", () => {
it("should compute ulp of integer", () => {
expect(ulp_1.default(1)).toBe(2.220446049250313e-16);
});
it("should compute ulp of floating point number", () => {
expect(ulp_1.default(0.000333)).toBe(5.421010862427522e-20);
});
});
//# sourceMappingURL=ulp.spec.js.map