Function hydra_dx_math::fraction::to_fixed
source · 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.