bignumber.js is a JavaScript library for arbitrary-precision decimal and non-decimal arithmetic. It provides a BigNumber type with a simple API for accurate integer and decimal calculations, including Number-like formatting methods such as toFixed, toPrecision, and toExponential, plus helpers like toFraction and squareRoot.
Project status
- The repository appears actively maintained, with a recent upstream push on 2026-07-05 and multiple tagged updates in 2026 (v11.1.5 on 2026-07-05, v11.1.4 on 2026-06-16, v11.1.3 on 2026-04-30).
- The apparent update cadence is relatively steady, roughly every 3 to 7 weeks between updates during 2026.
AI summary generated
Recent updates
v11.1.5
v11.1.5 bumps the bignumber.js version and updates the implementation of BigNumber.prototype.toFraction. The bundled changelog entry indicates this release addresses sub-optimal rational approximations for toFraction. The diff shows a meaningful internal change to how the “closer fraction” is chosen, plus new/updated tests covering edge and tie cases.
v11.1.4
v11.1.4 updates bignumber.js versioning and includes a fix for BigNumber#toFormat formatting when grouping is configured with groupSize 0. The repository also updates unit tests to assert the corrected output.
v11.1.3
This release adds several BigNumber formatting and parsing improvements, including new conversion helpers (toBigInt, fromFormat) and enhanced decimal-place handling (including negative decimal places). It also fixes a performance issue related to hexadecimal integer base conversion when DECIMAL_PLACES is very large.
Features