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

brick/math

Arbitrary-precision arithmetic library for PHP observed · 2026-08-28

github.com/brick/math · PHP · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

98/100

  • Activity 99
  • Release rhythm 96
  • Longevity 100
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: 7.0
  • age_days: 4385
  • days_rel: 25
  • days_push: 8
  • n_releases_24m: 23

Full methodology

Adoption not part of the score

2162 stars · 101 forks observed · 2026-08-28

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

A PHP library for arbitrary-precision arithmetic providing BigInteger, BigDecimal, and BigRational classes. It automatically uses the fastest available calculator implementation (GMP, BCMath, or a pure-PHP fallback).

Use cases

  • do exact math with very large integers in PHP
  • handle money calculations without floating-point errors
  • work with arbitrary precision decimal numbers
  • compute with rational numbers and fractions
  • avoid integer overflow in PHP calculations

When to choose

  • you need exact arithmetic beyond PHP's native int/float limits
  • you want a well-tested, production-ready precision math library with optional GMP/BCMath acceleration

When to avoid

  • you only need standard floating-point math
  • you're on PHP < 8.2 and can't use an older release branch

Facets

library · maturity stable

math developer-tools php arbitrary-precision biginteger bigdecimal bigrational gmp bcmath algorithms

1 source

Member repositories

RepositoryRoleHealth v2
brick/mathmain98

For agents

markdown · JSON · MCP: product_card(name="brick/math")

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