PRBMath
LAUNCH PARTNER
Ecosystem Partner
Alchemy Venture
Best-in-Class App
WAGBI Winner
WEB3 30 WINNER
Web3 30 Nominee
Growth Customer
Amplify Winners
Enterprise Customer

PRBMath

PRBMath

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

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 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.

User Interface of crypto currency wallet

Use Web3's Most Scalable and Reliable RPC Nodes

Sign up for a free Alchemy Account

User Interface of crypto currency wallet

Web3 Dapps and Developer Tools Related To PRBMath

Solidity Developer Tools
Solidity functions to generate evenly spaced arrays, linspace, arange & logspace.
Chains
Ethereum
Learn More
Smart Contract Templates
A base for smart contract development that is modern and gas optimized.
Chains
Ethereum
Learn More
Solidity Developer Tools
A VS Code extension that helps with writing security-conscious Solidity code.
Chains
Ethereum
Learn More

Best Smart Contract Tools

Discover more web3 applications and developer tools.

Build blockchain magic with Alchemy

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