Found Academy useful? A $5 donation by May 14 helps us ship more, faster. Every donor counts (QF matching).

Donate
All glossary terms
Solidity

Fixed-Point Arithmetic

A technique for representing fractional numbers in Solidity (which has no native floating-point). Uniswap V2 uses UQ112.112 format: the number is multiplied by 2^112, stored as uint224, and divided back when needed. This gives 112 bits of integer precision and 112 bits of fractional precision.

Related terms in Solidity