Dapp storeEthereumSolidity toolsSmart contract tools
PRBMath
PRBMath
Smart contract tools

PRBMath

A Solidity library to handle complex fixed-point math with signed and unsigned variables.

Ethereum Logo
Open-source
This link will take you to a third-party site not owned or operated by Alchemy.

What is PRBMath ?

PRBMath, the Paul Razvan Berg-written math library is gas-friendly and comes with default functions to handle exponentials, powers, logarithms, and square roots. Developers can create mathematical calculations in smart contracts using signed 59.18-decimal fixed-point and unsigned 60.18-decimal fixed-point numbers with up to 18 trailing decimals. Nearly 1,000 stars and over 100 forks attest to the usefulness of the library's tools.

Use web3's most scalable and reliable RPC nodes
Get your API key

Best Smart contract tools

Discover more web3 applications and developer tools.

See all dapps

Developer resources from Alchemy

Dapp store background image

Build blockchain magic

Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.
Get your API key