fn round_c(num: f32) -> f32
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.
static float round(float num) { return floor(num+0.5); }
num + 0.5