Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

Decimal.js

Arbitrary-precision decimal arithmetic for JavaScript avoiding floating-point errors.

UtilitiesNPM

GitHubWebsite

1. License

License from npm.

github.com/MikeMcl/decimal.js

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What Decimal.js does

Arbitrary-precision decimal arithmetic for JavaScript avoiding floating-point errors.

Decimal.js popularity

69 / 100
Gid Score, #415 overall
149M
downloads a week, npm
7,273
GitHub stars
14
agent projects use it
Decimal.js: downloads per weeknpm, decimal.js 148,802,323
Decimal.js: GitHub starsMikeMcl/decimal.js 7,273

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How Decimal.js is used

  • Decimal.js is a dependency in 14 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 93 projects, and what it is used with below comes from all of them.
  • The most used alternative in our scan is bn.js (0 projects).
  • Projects that use it most often also use Solana Web3.js (55.9%), Solana SPL Token (43.0%), Axios (31.2%).

By coding agent

8 projects, 0.2%
7 projects, 0.2%
6 projects, 0.2%

Often used with

In 55.9% of its projects
In 43.0% of its projects
In 31.2% of its projects
In 81.7% of its projects
In 61.3% of its projects
In 24.7% of its projects
In 22.6% of its projects
In 20.4% of its projects

More about Decimal.js

More in Utilities

Alternatives

Decimal.js This page

MITGid 69149M/wk

bn.js

Big number library for handling arbitrary-precision integers in JavaScript.

MITGid 6479.1M/wk

Compare Decimal.js with another tool

Get started

Install it.

npm install decimal.js

No step-by-step start for Decimal.js yet: we have not written its hand-checked card.