#NEWLINE# def fractionToDecimal( self , numerator , denominator ) : #NEWLINE# #INDENT# '\n        :type numerator: int\n        :type denominator: int\n        :rtype: str\n        ' #NEWLINE# int_part = ( numerator / denominator ) #NEWLINE# fract_part = ( numerator - ( int_part * denominator ) ) #NEWLINE# if fract_part : #NEWLINE# #INDENT# decimal_part = self . frac ( ( self - ( int_part * denominator ) ) , denominator ) #NEWLINE# ret = ( ( str ( int_part ) + '.' ) + decimal_part ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret = str ( int_part ) #NEWLINE# #UNINDENT# return ret