parameters: (self, number, denominator)
return_statement: return final_number
docstring: Rounds a number.
  
          Args:
              number (int|float): The number to round.
              denominator (int): The denominator.
docstring_summary: Rounds a number.
docstring_tokens: Rounds a number .
function: def rounded_number(self, number, denominator):
          """Rounds a number.
  
          Args:
              number (int|float): The number to round.
              denominator (int): The denominator.
          """
          rounded = str(round(Decimal(number)/Decimal(denominator), 1))
          replace_trailing_zero = re.compile('0$')
          no_trailing_zeros = replace_trailing_zero.sub('', rounded)
          replace_trailing_period = re.compile('\.$')
          final_number = replace_trailing_period.sub('', no_trailing_zeros)
          return final_number
function_tokens: def rounded_number ( self , number , denominator ) : rounded = str ( round ( Decimal ( number ) / Decimal ( denominator ) , 1 ) ) replace_trailing_zero = re . compile ( '0$' ) no_trailing_zeros = replace_trailing_zero . sub ( '' , rounded ) replace_trailing_period = re . compile ( '\.$' ) final_number = replace_trailing_period . sub ( '' , no_trailing_zeros ) return final_number