Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

abs

Returns the absolute value of a fixed-point number.

Arguments

  • a - The input value

Returns

The absolute value (always positive)

Fully qualified path: cairo_fp::f128::math::ops::abs

fn abs(a: Fixed) -> Fixed