Private big.js-compatible package for arbitrary-precision decimal arithmetic, implemented as a
single-file TypeScript runtime in src/index.ts with workspace-local bigint-aware typings.
Installation
npm install @eternl/big
This package is published as a restricted scoped package and is intended for internal Eternl modules.
Usage
import Big from '@eternl/big'
const amount = new Big('9007199254740993')
const sum = amount.plus(7n)
sum.toString()
Source Attribution
This package is a behavior-preserving TypeScript port of big.js
(version 7.0.1) and adapts TypeScript typings to support bigint as input.