Fix rounding of input values.