> For the complete documentation index, see [llms.txt](https://docs.belugas.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.belugas.io/getting-started/protocol-math.md).

# Protocol Math

The Belugas protocol contracts use a system of exponential math, [Exponential.sol](https://github.com/Belugas-Protocol/belugas-protocol/blob/main/contracts/Exponential.sol), in order to represent fractional quantities with sufficient precision.

Most numbers are represented as a mantissa, an unsigned integer scaled by `1 * 10 ^ 18`, in order to perform basic math at a high level of precision.

{% content-ref url="/pages/6SlR0ihkrR4rYq4VrOs8" %}
[bToken and Underlying Decimals](/getting-started/protocol-math/atoken-and-underlying-decimals.md)
{% endcontent-ref %}

{% content-ref url="/pages/fV5PUK3lmLqhbVNxt8Ze" %}
[Interpreting Exchange Rates](/getting-started/protocol-math/interpreting-exchange-rates.md)
{% endcontent-ref %}

{% content-ref url="/pages/YnRXEggYfTGV4RDI03tC" %}
[Calculating Accrued Interest](/getting-started/protocol-math/calculating-accrued-interest.md)
{% endcontent-ref %}

{% content-ref url="/pages/kpc5gRjO6fvt8FKdK5Qh" %}
[Calculating the APY Using Rate Per Block](/getting-started/protocol-math/calculating-the-apy-using-rate-per-block.md)
{% endcontent-ref %}
