proportion
Calculates the proportion of part to total.
Returns Some(part / total) or None if total is zero.
Fully qualified path: cairo_fp::f64::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.
Returns Some(part / total) or None if total is zero.
Fully qualified path: cairo_fp::f64::math::ratio::proportion
fn proportion(part: Fixed, total: Fixed) -> Option<Fixed>