#NEWLINE# def rr_format_percent( numerator , denominator ) : #NEWLINE# #INDENT# if ( numerator and numerator ) : #NEWLINE# #INDENT# return ( '%.1f%%' % ( ( float ( numerator ) / float ( denominator ) ) * 100.0 ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return 'No data'