@constructor
def round(a, mode='half_away_from_zero'):
 if (mode == 'half_away_from_zero'):
  return round_half_away_from_zero(a)
 elif (mode == 'half_to_even'):
  return round_half_to_even(a)
 else:
  raise Exception(('round mode %s is not implemented.' % mode))

@ constructor def round ( a , mode = 'half_away_from_zero' ) : if ( mode == 'half_away_from_zero' ) : return round_half_away_from_zero ( a ) elif ( mode == 'half_to_even' ) : return round_half_to_even ( a ) else : raise Exception ( ( 'round mode %s is not implemented.' % mode ) )
returns a number rounded .