A Solidity library to handle complex fixed-point math with signed and unsigned variables.
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 with an int256 precision and an 18-point training decimal. +500 stars, forks, and pull requests attest to the usefulness of the library's tools.
Use Web3's Most Scalable and Reliable RPC Nodes
Sign up for a free Alchemy Account
Alchemy combines the most powerful web3 developer products and tools with resources, community and legendary support.