Handle floating point rounding errors.