Module math

Source

Functions§

divide_decimal_by_decimal
Divide ‘a’ by ‘b’.
divide_uint128_by_decimal
Divide Uint128 by Decimal. (Uint128 / numerator / denominator) is equal to (Uint128 * denominator / numerator).
divide_uint128_by_decimal_and_ceil
Divide Uint128 by Decimal, rounding up to the nearest integer.
multiply_uint128_by_decimal_and_ceil
Multiply Uint128 by Decimal, rounding up to the nearest integer.
uint128_checked_div_with_ceil