MikeMcl/bignumber.js
A JavaScript library for arbitrary-precision decimal and non-decimal arithmetic observed · 2026-08-28
Health v2 · maintenance only
78/100
- Activity 91
- Release rhythm 49
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 5046
- days_rel: 125
- days_push: 59
- n_releases_24m: 1
Adoption not part of the score
7009 stars · 752 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A JavaScript library for arbitrary-precision decimal and non-decimal (base 2-36) arithmetic. It provides a full-featured BigNumber API with configurable precision, rounding modes, and formatting, in an 8 KB dependency-free package.
Use cases
- avoid floating-point errors in JavaScript money calculations
- add and multiply very large integers in JavaScript
- parse and compute decimal numbers with exact precision
- convert numbers between bases 2 to 36
- format numbers with fixed decimal places and rounding
- generate cryptographically-secure random big numbers
When to avoid
- you only need simple decimal arithmetic and want a smaller library (use big.js)
- you need non-integer powers or significant-digit precision control (use decimal.js)
- you need native BigInt performance for integer-only workloads
Facets
library · maturity stable
math serialization developer-tools web-development fintech browser cross-platform arbitrary-precision bigdecimal decimal-arithmetic bignumber floating-point javascript nodejs
3 sources
- readme: https://github.com/MikeMcl/bignumber.js · fetched 2026-08-28 · 6514b177f18c
- homepage: http://mikemcl.github.io/bignumber.js · fetched 2026-08-29 · ad68bc7229fd
- registry_npm: https://registry.npmjs.org/bignumber.js · fetched 2026-08-29 · 355d33353d2b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MikeMcl/bignumber.js | main | 78 |
For agents
markdown · JSON · MCP: product_card(name="MikeMcl/bignumber.js")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem