proportion
Calculates the proportion of part to total.
Returns
Some(part / total) or None if total is zero
Fully qualified path: cairo_fp::f128::math::ratio::proportion
fn proportion(part: Fixed, total: Fixed) -> Option<Fixed>
Press ← or → to navigate between chapters
Press ? to show this help
Press Esc to hide this help
Calculates the proportion of part to total.
Some(part / total) or None if total is zero
Fully qualified path: cairo_fp::f128::math::ratio::proportion
fn proportion(part: Fixed, total: Fixed) -> Option<Fixed>