Skip to main content

round

Function round 

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

Math.round(double): the nearest long, ties toward positive infinity (so -2.5 is -2), saturating, NaN is 0.