npm / bignumber.js
bignumber.js
What changed in bignumber.js 11, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.
3 new APIs and options1 performance4 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initbignumber.js 119 changes
New APIs and options 3
Parses formatted strings back into BigNumber values.
BigNumber values can be converted directly to native BigInt values.
Supports minimum and maximum decimal places.
Performance 1
A fix improves slow hexadecimal integer base conversion when DECIMAL_PLACES is very large.
Behavior and default changes 4
Supports negative decimal places.
Supports negative decimal places.
Supports negative decimal places, making it easier to round to tens, hundreds, and thousands.
Per-call formatting options fall back to configured global FORMAT values when not explicitly overridden.
Fixes and other changes 1
BigNumber.sum() returns zero when called with no arguments, so spreading an empty array works cleanly.