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

nefe/number-precision

🚀1K tiny & fast lib for doing addition, subtraction, multiplication and division operations precisely observed · 2026-08-28

github.com/nefe/number-precision · TypeScript observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • Release rhythm 8
  • Longevity 100

Flags: no_license

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: 3299
  • days_rel: n/a
  • days_push: 814
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

4097 stars · 322 forks observed · 2026-08-28

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

A tiny (~1KB) TypeScript library for JavaScript that performs addition, subtraction, multiplication, and division with exact decimal precision, avoiding floating-point errors like 0.1 + 0.2 = 0.30000000000000004. It also provides number stripping and ratio-based rounding.

Use cases

  • fix 0.1 + 0.2 floating point errors in javascript
  • precise decimal arithmetic for money calculations
  • round 0.105 to 2 decimal places correctly
  • avoid floating point precision bugs in frontend apps
  • accurate multiplication like 0.362 * 100
  • strip floating point noise from computed numbers

When to choose

  • you need exact decimal arithmetic in JavaScript without heavyweight dependencies
  • bundle size matters and you only need basic arithmetic operations
  • you're doing financial or pricing calculations in a web app

When to avoid

  • you need arbitrary-precision or big-number math beyond safe integer boundaries
  • you need a full decimal type with configurable precision and scale
  • your runtime isn't JavaScript/TypeScript

Facets

library · maturity stable

math serialization developer-tools web-development browser floating-point arithmetic rounding-error typescript tiny-library algorithms nodejs javascript

2 sources

Member repositories

RepositoryRoleHealth v2
nefe/number-precisionmain23

For agents

markdown · JSON · MCP: product_card(name="nefe/number-precision")

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