Change round() to roundf()

My app was crashing here, since the result of the round() was NaN, so I fixed it.