1.1.0 • Published 5 years ago
bigint-unboxed v1.1.0
JavaScript big integers with support for ES6 BigInt and unboxed small integers
- Small integers are stored as 52 bit unboxed JS integers
- Larger integers are either represented by ES6 BigInts or by a fallback implementation
const I = require("bigint-unboxed");
const a = I.intAdd(I.I(1), I.I(2));
const b = I.intMul(I.I(3), I.I(2));
const c = I.intShl(I.I(1), 1234);