Numeric Precisions
Percentages
All the percentages MUST have a precision of two decimals and be expressed as
basis-points (bps) scaled as Algorand
Virtual Machine (AVM) uint64
.
📎 EXAMPLE
The AVM works with
uint64
, therefore \( 100.00 \% = 10{,}000 \mathrm{bps} \). So, \( 12.5 \% \) of \( X \) is calculated on the AVM as:$$ \frac{1{,}250 \mathrm{bps} \times X}{10{,}000 \mathrm{bps}}. $$