Keyboard shortcuts

Press or to navigate between chapters

Press ? to show this help

Press Esc to hide this help

round

Rounds to the nearest integer (half up).

Examples

  • round(2.4)2
  • round(2.5)3
  • round(-2.5)-3

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

fn round(a: Fixed) -> Fixed