# Numbers and money

Calculate exactly with decimals and money, and format numbers. Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.

| Rank | Project | Overall | Needed by many | Helps a lot | Holds up over time | Used widely | Vouched for | Safe | Best for |
| --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
| 1 | [decimal.js](https://elestia.ai/opensource/numbers/decimal-js/index.md) | 7.5 | 5.6 | 8.2 | 5.6 | 7.9 | 7.6 | 7.1 | Projects that need exact decimal arithmetic with set precision and advanced math functions, such as finance, pricing or scientific code. |
| 2 | [bignumber.js](https://elestia.ai/opensource/numbers/bignumber-js/index.md) | 7.3 | 4.8 | 7.6 | 6.6 | 6.8 | 6.5 | 7.1 | Projects that need exact decimal math with fixed decimal places, built-in number formatting or non-decimal bases, and do not need a full money model. |
| 3 | [Dinero.js](https://elestia.ai/opensource/numbers/dinero/index.md) | 7.2 | 4.4 | 7.5 | 6.5 | 4.3 | 5.1 | 7.3 | TypeScript teams that build billing, checkout or accounting features and want currency-safe money values and lossless allocation, not raw decimal math. |
| 4 | [big.js](https://elestia.ai/opensource/numbers/big-js/index.md) | 6.5 | 4.9 | 7.0 | 5.0 | 7.0 | 6.0 | 6.8 | Projects that need small, exact decimal arithmetic (add, multiply, divide, round) for prices or totals, with the smallest possible bundle. |
| 5 | [Math.js](https://elestia.ai/opensource/numbers/mathjs/index.md) | 5.8 | 4.8 | 6.6 | 6.9 | 5.6 | 5.9 | 6.2 | Apps that need user-entered formulas, units, matrices or fractions alongside some exact decimal math. |
| 6 | [currency.js](https://elestia.ai/opensource/numbers/currency-js/index.md) | 4.4 | 4.7 | 5.1 | 2.7 | 4.1 | 3.9 | 6.8 | Small apps that need quick, readable dollar-and-cent arithmetic and display, without strict accounting rules. |
| 7 | [Numbro](https://elestia.ai/opensource/numbers/numbro/index.md) | 3.8 | 4.6 | 5.5 | 2.6 | 3.7 | 3.8 | 5.9 | Projects that already use numbro or Handsontable and want Numeral-style format strings and unformat parsing. |
| 8 | [Numeral.js](https://elestia.ai/opensource/numbers/numeral/index.md) | 3.2 | 5.4 | 4.2 | 2.2 | 4.9 | 4.2 | 6.1 | Existing codebases that already use Numeral format strings and cannot migrate yet. |

## The numbers

| Project | Downloads, 4 weeks | In a year | GitHub stars | Commits, 12 months | Last npm release | Advisories, 24 months |
| --- | --- | --- | --- | --- | --- | --- |
| decimal.js | 557M | ×4.4 | 7.3k | 4 | Jul 2025 | 0 |
| bignumber.js | 360M | ×4.1 | 7k | 29 | Jul 2026 | 0 |
| Dinero.js | 3.9M | ×3.7 | 6.8k | 207 | Mar 2026 | 0 |
| big.js | 173M | +73% | 5.2k | 0 | Apr 2025 | 0 |
| Math.js | 22M | ×3.4 | 15k | 62 | Apr 2026 | 2 |
| currency.js | 3.8M | ×2.2 | 3.4k | 0 | May 2021 | 0 |
| Numbro | 3.1M | +84% | 1.1k | 0 | Apr 2024 | 0 |
| Numeral.js | 13M | ×2.2 | 9.7k | 0 | Mar 2017 | 0 |

All categories: https://elestia.ai/opensource/index.md
