(number)
return int(
      decimal.Decimal(number).quantize(
          decimal.Decimal('1'), rounding=decimal.ROUND_HALF_UP))
To nearest with ties going away from zero.
To nearest with ties going away from zero.
To nearest with ties going away from zero .
def round_half_up(number):
  ''' To nearest with ties going away from zero. '''
  return int(
      decimal.Decimal(number).quantize(
          decimal.Decimal('1'), rounding=decimal.ROUND_HALF_UP))
def round_half_up ( number ) : return int ( decimal . Decimal ( number ) . quantize ( decimal . Decimal ( '1' ) , rounding = decimal . ROUND_HALF_UP ) )