pub fn to_fixed(f: Fraction) -> FixedU128
Expand description

Convert a Fraction to a FixedU128.

Note: Loss of precision possible because FixedU128 uses fewer bits for the fractional part. Warning: Panics if f > 1 in debug mode, but saturates in release.