Skip to main content

roundi

Function roundi 

pub fn roundi(x: f64) -> i64
Expand description

Rounds x to the nearest whole number, with halfway cases rounded away from 0.

A type-safe version of [method round], returning an int.