Replace roundf() with addition of 0.5. Effect is the same.