MikeMcl/big.js
A small, fast JavaScript library for arbitrary-precision decimal arithmetic. observed · 2026-08-28
Health v2 · maintenance only
40/100
- Activity 17
- Release rhythm 35
- Longevity 100
Flags: no_releases
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: 5047
- days_rel: n/a
- days_push: 498
- n_releases_24m: 0
Adoption not part of the score
5194 stars · 413 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
big.js is a small, fast JavaScript library for arbitrary-precision decimal arithmetic, exporting a single immutable Big number constructor with a simple chained API. It works in all browsers and Node/Deno environments with no dependencies.
Use cases
- avoid floating-point errors like 0.3 - 0.1 in JavaScript
- do precise decimal arithmetic for money and prices
- handle numbers with more than 15 significant digits
- round and format decimals with controlled decimal places
- parse and compute with numbers in exponential notation
When to choose
- you need a tiny (~6 KB), dependency-free decimal math library
- you only need basic arithmetic, rounding, and comparison on decimals
- you want broad browser compatibility including legacy environments
- you prefer a simple API over heavyweight BigDecimal ports
When to avoid
- you need non-decimal bases, NaN/Infinity, or advanced math functions like trigonometry
- you need binary floating-point semantics rather than decimal
- you need very large exponent ranges beyond the recommended magnitude of 1,000,000
- you need integer-only arbitrary precision, where BigInt may suffice
Facets
library · maturity stable
math serialization developer-tools web-development browser cross-platform arbitrary-precision decimal-arithmetic bignumber floating-point no-dependencies algorithms nodejs deno
3 sources
- readme: https://github.com/MikeMcl/big.js · fetched 2026-08-28 · df754ebd404a
- homepage: http://mikemcl.github.io/big.js · fetched 2026-08-29 · 91b9aaf95ff9
- registry_npm: https://registry.npmjs.org/big.js · fetched 2026-08-29 · 7d80a8e245b6
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| MikeMcl/big.js | main | 40 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem