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

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Formats a <tt>number</tt> into a currency string (e.g., $13.65). You can customize the format in the <tt>options</tt> hash.
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Options
- !ruby/object:SM::Flow::LIST 
  contents: 
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:precision</tt> - Sets the level of precision (defaults to 2).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:unit</tt> - Sets the denomination of the currency (defaults to &quot;$&quot;).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:separator</tt> - Sets the separator between the units (defaults to &quot;.&quot;).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: <tt>:delimiter</tt> - Sets the thousands delimiter (defaults to &quot;,&quot;).
  - !ruby/struct:SM::Flow::LI 
    label: "*"
    body: "<tt>:format</tt> - Sets the format of the output string (defaults to &quot;%u%n&quot;). The field types are:"
  - !ruby/struct:SM::Flow::VERB 
    body: "  %u  The currency unit\n  %n  The number\n"
  type: :BULLET
- !ruby/struct:SM::Flow::H 
  level: 4
  text: Examples
- !ruby/struct:SM::Flow::VERB 
  body: " number_to_currency(1234567890.50)                    # =&gt; $1,234,567,890.50\n number_to_currency(1234567890.506)                   # =&gt; $1,234,567,890.51\n number_to_currency(1234567890.506, :precision =&gt; 3)  # =&gt; $1,234,567,890.506\n\n number_to_currency(1234567890.50, :unit =&gt; &quot;&amp;pound;&quot;, :separator =&gt; &quot;,&quot;, :delimiter =&gt; &quot;&quot;)\n # =&gt; &amp;pound;1234567890,50\n number_to_currency(1234567890.50, :unit =&gt; &quot;&amp;pound;&quot;, :separator =&gt; &quot;,&quot;, :delimiter =&gt; &quot;&quot;, :format =&gt; &quot;%n %u&quot;)\n # =&gt; 1234567890,50 &amp;pound;\n"
full_name: ActionView::Helpers::NumberHelper#number_to_currency
is_singleton: false
name: number_to_currency
params: (number, options = {})
visibility: public
