code: def rounding(price, currency):
  	
  	currency = validate_currency(currency)
  	price = validate_price(price)
  	if decimals(currency) == 0:
  		return round(int(price), decimals(currency))
  	return round(price, decimals(currency))
docs: rounding currency value based on its max decimal digits