to_formatted_s(format = :default, options = {})
Instance Public methods
Provides options for converting numbers into formatted strings. Options are
provided for phone numbers, currency, percentage, precision, positional
notation, file size and pretty printing.
Options
For details on which formats use which options, see ActiveSupport::NumberHelper
Examples
Phone Numbers:
5551234.to_s(:phone) # => 555-1234
1235551234.to_s(:phone)