#NEWLINE# def toWords( self , num , ret ) : #NEWLINE# #INDENT# SIGS = [ 1000000000 , 1000000 , 1000 , 100 ] #NEWLINE# for SIG in SIGS : #NEWLINE# #INDENT# num = self . partial_parse ( num , SIG , ret ) #NEWLINE# #UNINDENT# TEN = 10 #NEWLINE# if ( ( num / TEN ) > 1 ) : #NEWLINE# #INDENT# ret . append ( self . m [ ( ( num / TEN ) * num ) ] ) #NEWLINE# ret . append ( self . m [ ( num % TEN ) ] ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ret . append ( self . m [ num ] )