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

PaulRBerg/prb-math

Solidity library for advanced fixed-point math observed · 2026-08-28

github.com/PaulRBerg/prb-math · Solidity · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

89/100

  • Activity 97
  • Release rhythm 72
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: 108
  • age_days: 1988
  • days_rel: 30
  • days_push: 19
  • n_releases_24m: 4

Full methodology

Adoption not part of the score

1006 stars · 145 forks observed · 2026-08-28

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

PRBMath is a Solidity library for advanced fixed-point arithmetic using signed SD59x18 and unsigned UD60x18 number formats with 18 decimals. It provides gas-efficient, type-safe math functions like logarithms, exponentials, powers, square roots, and overflow-safe mulDiv for smart contract development.

Use cases

  • perform fixed-point math in solidity smart contracts
  • compute logarithms and exponentials on-chain
  • implement defi pricing and interest calculations
  • safe multiplication and division without overflow in solidity
  • type-safe decimal arithmetic for evm contracts

When to choose

  • you need precise decimal math in solidity with 18-decimal fixed-point numbers
  • you want type safety via user-defined value types
  • you need gas-efficient advanced math functions like exp, ln, and sqrt on-chain

When to avoid

  • you only need simple integer arithmetic
  • you prefer binary fixed-point formats like ABDKMath64x64
  • you are not developing for the EVM

Facets

library · maturity stable

math sdk blockchain fintech developer-tools solidity smart-contracts fixed-point defi evm foundry ethereum

1 source

Member repositories

RepositoryRoleHealth v2
PaulRBerg/prb-mathmain89

For agents

markdown · JSON · MCP: product_card(name="PaulRBerg/prb-math")

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