Module math

Source
Expand description

Math helpers

Traits§

FeeCalculator
Calculates fees.

Functions§

mul_div
Multiplies two u64s then divides by the third number. This function attempts to use 64 bit math if possible.
mul_div_imbalanced
Multiplies two u64s then divides by the third number. This assumes that a > b.