# 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="protocol-math/atoken-and-underlying-decimals" %}
[atoken-and-underlying-decimals](https://docs.belugas.io/getting-started/protocol-math/atoken-and-underlying-decimals)
{% endcontent-ref %}

{% content-ref url="protocol-math/interpreting-exchange-rates" %}
[interpreting-exchange-rates](https://docs.belugas.io/getting-started/protocol-math/interpreting-exchange-rates)
{% endcontent-ref %}

{% content-ref url="protocol-math/calculating-accrued-interest" %}
[calculating-accrued-interest](https://docs.belugas.io/getting-started/protocol-math/calculating-accrued-interest)
{% endcontent-ref %}

{% content-ref url="protocol-math/calculating-the-apy-using-rate-per-block" %}
[calculating-the-apy-using-rate-per-block](https://docs.belugas.io/getting-started/protocol-math/calculating-the-apy-using-rate-per-block)
{% endcontent-ref %}
