Round floats by using roundf in order to round correctly.