ActiveSupport::NumberHelper
module ActiveSupport::NumberHelper
Public Instance Methods
Formats a number
into a currency string (e.g., $13.65). You can customize the format in the options
hash.
Options
-
:locale
- Sets the locale to be used for formatting (defaults to current locale). -
:precision
- Sets the level of precision (defaults to 2). -
<