Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

percentage_diff

Calculates the absolute percentage difference.

Returns |a - b| / max(a, b)

Returns

None if both values are zero

Fully qualified path: cairo_fp::f128::math::ratio::percentage_diff

fn percentage_diff(a: Fixed, b: Fixed) -> Option<Fixed>