--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Formats a <tt>number</tt> with a level of <tt>:precision</tt> (e.g., 112.32 has a precision of 2). You can pass another format to use and even overwrite the format's options.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Parameters
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "format_name<Symbol>:"
    body: name of the format to use
  - !ruby/struct:SM::Flow::LI 
    label: "options<Hash>:"
    body: options which will overwrite the used format
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Returns
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "String:"
    body: a string representing the delimited number
  type: :NOTE
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Options
- !ruby/struct:SM::Flow::P 
  body: ":precision - Overwrites the level of precision :separator - Overwrites the separator between the units :delimiter - Overwrites the thousands delimiter"
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::P 
  body: "with_precision(111.2345) # =&gt; 111.235 with_precision(111.2345, :UK, :precision =&gt; 1) # =&gt; &quot;111.2&quot; with_precision(1234.567, :US, :precision =&gt; 1, :separator =&gt; ',', :delimiter =&gt; '-') # =&gt; &quot;1-234,6&quot;"
full_name: Numeric::Transformer::with_precision
is_singleton: true
name: with_precision
params: (number, format_name = nil, options={})
visibility: public
