Skip to main content

roundf

Function roundf 

pub fn roundf(x: f64) -> f64
Expand description

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

A type-safe version of [method round], returning a float.