# File format.rb, line 582 def formatString (s, unused_var_name=nil, unused_aBinding=nil) #might want to put a %0 to pad w/ 0's precision = ((@g_e =~ /[Ee]/) ? @fraction : @sig_figs) result = sprintf("%#{@total_size}.#{precision}#{@g_e}", s) result end