# Decimal.js — card for AI agents

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

Category: Utilities · npm package `decimal.js` · latest version 10.6.0 (checked 2026-11-01)
Install: `npm install decimal.js`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 69.4 (#415 of all tools, 46 of 408 in its category)
- Used in 14 public projects set up for AI coding agents (0.2%)
- Downloads last week: 148,802,323 (as of 2026-11-24), +44.3% over 4 weeks
- GitHub stars: 7,273 (as of 2026-11-24)
- Last push: 2026-08-30

## Often used with
Solana Web3.js 55.9%, Solana SPL Token 43.0%, Axios 31.2%, TypeScript 81.7%, ESLint 61.3%, ts-node 24.7%

## Checked alternatives (same job)
- bn.js: https://agentgid.com/tools/bn-js/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/decimal-js/
- Homepage: https://github.com/MikeMcl/decimal.js#readme
- Repository: https://github.com/MikeMcl/decimal.js

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
