Digital Asset
Intelligence
BTC/USD—
ETH/USD—
SOL/USD—
S&P 500—
GOLD—
DXY—
Developer Tools

PRBMath

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

Visit website

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

Best for

  • Web3 developers

Official resources

Websitegithub.com
DocumentationGetting started
Community discussion (0)

Share your experience with PRBMath.

Sign in to join the discussion