Function hydra_dx_math::fraction::frac

source ·
pub fn frac(n: u128, d: u128) -> Fraction
Expand description

Create a fraction based on a numerator and denominator.

Warning: Panics if n > d in debug mode, but saturates in release.