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.0 · 3 Aug 2026

These files are PaulRBerg/prb-math's own configuration. They tell Codex, OpenCode and Claude Code 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.

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

Instructions