Fix float rounding to return correct number