Ross ROSS = Recommend OSS · open-source software intelligence for agents

MikeMcl/decimal.js

An arbitrary-precision Decimal type for JavaScript observed · 2026-08-28

github.com/MikeMcl/decimal.js · homepage · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

74/100

  • Activity 92
  • 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: 4536
  • days_rel: n/a
  • days_push: 51
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

7249 stars · 496 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

decimal.js is an arbitrary-precision Decimal type for JavaScript, supporting integers and floats with configurable significant-digit precision. It replicates many Number and Math methods, adds trigonometric functions and non-integer powers, and has no dependencies.

Use cases

  • do precise decimal arithmetic for money without floating-point errors
  • compute with very large or very small numbers in JavaScript
  • calculate trig functions at high precision
  • round numbers to a fixed number of significant digits
  • parse and format numbers in hex, binary, or octal
  • replace Java BigDecimal in a JavaScript port

When to choose

  • you need significant-digit precision and rounding on all operations
  • you need trigonometric functions, logs, or non-integer powers with arbitrary precision
  • you want a dependency-free library with wide browser and Node compatibility
  • you need TypeScript declarations

When to avoid

  • you only need decimal-place rounding and a smaller bundle (use bignumber.js or big.js)
  • you need integer-only arithmetic (use BigInt)
  • you need a lighter version without trig functions (use decimal.js-light)

Facets

library · maturity stable

math serialization developer-tools web-development mathematics browser cross-platform arbitrary-precision decimal-arithmetic bignumber floating-point typescript-definitions nodejs

3 sources

Member repositories

RepositoryRoleHealth v2
MikeMcl/decimal.jsmain74

For agents

markdown · JSON · MCP: product_card(name="MikeMcl/decimal.js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem