Skip to main content

round_f32

Function round_f32 

pub fn round_f32(a: f32) -> i32
Expand description

Math.round(float): the int closest to a, ties toward positive infinity (so -2.5 is -2); NaN is 0, and values beyond the int range give i32::MIN or i32::MAX.