Solidity library for advanced fixed-point math
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.
AGENTS.md A 847 tok 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.