Module mars_utils::math

source ·

Functions

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