with_precision (Numeric::Transformer)

    # File lib/merb-helpers/core_ext/numeric.rb, line 179
        def self.with_precision(number, format_name = nil, options={})

          format = (formats[format_name] || default_format)[:number].merge(options)

          begin
            rounded_number = (Float(number) * (10 ** format[:precision])).round.to_f / 10 ** format[:precision]
            with_delimiter("%01.#{format[:precision]}f" % rounded_number, format_name, :delimiter => format[:delimiter], :separator => format[:separator])
          rescue
            number
          end
        end