
PRBMath
FreeGitHub Open Source Projects
PRBMath is a Solidity library to handle complex fixed-point math with signed and unsigned variables.
About PRBMath
PRBMath is a gas-friendly math library designed for smart contracts.
It provides default functions for exponentials, powers, logarithms, and square roots, enabling on-chain math without reinventing common routines.
The library supports fixed-point arithmetic with int256 precision and an 18-decimal representation, making precise financial calculations practical in Solidity.
