# File lib/scruffy/formatters.rb, line 93
    def format(target, idx, options)
      my_precision = @precision
      
      if @precision == :auto
        my_precision = options[:all_values].inject(0) do |highest, current|
          cur = current.to_f.to_s.split(".").last.size
          cur > highest ? cur : highest
        end
      
        my_precision = @precision_limit if my_precision > @precision_limit
      elsif @precision == :none
        my_precision = 0
      end
      
      my_separator = @separator
      my_separator = "" unless my_precision > 0
      begin
        parts = number_with_precision(target, my_precision).split('.')
        
        number = parts[0].to_s.gsub(/(\d)(?=(\d\d\d)+(?!\d))/, "\\1#{@delimiter}") + my_separator + parts[1].to_s
        number
      rescue StandardError => e
        target
      end
    end