PaulRBerg/prb-math

Solidity library for advanced fixed-point math

About the project

PRBMath is a Solidity library for calculations with signed and unsigned fixed-point numbers using 18 decimal places. It provides functions for operations such as logarithms, exponentials, powers, square roots, and overflow-safe multiplication and division. The catalogue instructions help agents work with this library in smart-contract projects.

Latest release v4.2.3 · 20 Oct 2026

1 file for Codex and OpenCode: prb-math AGENTS.md — 847 tokens loaded in every session.

1,008Stars on the repository
1Files it configures its agents with
847Tokens loaded in every session
2Agents configured

Instructions

These files are PaulRBerg/prb-math's own configuration — they tell Codex and OpenCode how to work on this repository, so they are not mods to install elsewhere. Copy one as a starting point and replace the parts that are about this project.