| Module | CurrencyInWords |
| In: |
lib/currency-in-words.rb
|
encoding: utf-8
| DEFAULT_CURRENCY_IN_WORDS_VALUES | = | {:currencies=>{:default=>{:unit=>{:one=>'dollar',:many=>'dollars'}, :decimal=>{:one=>'cent',:many=>'cents'}}}, :connector=>', ',:format=>'%n',:negative_format=>'minus %n'} |
Formats a number into a currency string (e.g., ‘one hundred dollars’). You can customize the format in the options hash.
Field is %n for the currency amount in words.
Field is %n for the currency amount in words (same as format).