@exodus/bigint
v4.0.0
Published
bigint wrapper for native BigInt
Downloads
17,432
Readme
@exodus/bigint
Immutable API wrapper for BigInt numbers.
⚠️ Warning: These days you should probably just use BigInt directly.
Usage
import BigIntWrapper from '@exodus/bigint'
const three = BigIntWrapper.wrap(3)
const five = BigIntWrapper.wrap(5)
// perform arithmetic
// see full API: ./src/native-bigint.js and ./src/__tests__/index.test.js
three.add(five).mul(three).div(five).pow(three).sub(five)