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

# Protocol Math

The Port Finance protocol represents the number as mantissa, an unsigned integer divided by 10 ^ 18. That is the raw representation of 1 is actually 1 \* 10 ^ (-18). All the calculation that is related to deposit, withdraw, borrow and repay is calculated using this system.
