Skip to main content

round_c

Function round_c 

Source
fn round_c(num: f32) -> f32
Expand description

The file’s static float round(float num) { return floor(num+0.5); }: num + 0.5 and the floor in double, the result converted to float.