pub fn round(x: f32) -> f32
Returns the nearest integer to x. If a value is half-way between two integers, round away from 0.0.
x
0.0
Precision is specified when the libm feature is enabled.
libm