Module: L10n::CoreExtensions::BigDecimalExt
- Defined in:
- lib/l10n/core_extensions/big_decimal_ext.rb
Instance Method Summary collapse
Instance Method Details
#to_formatted_s(*args) ⇒ Object
9 10 11 |
# File 'lib/l10n/core_extensions/big_decimal_ext.rb', line 9 def to_formatted_s(*args) L10n.number_to_rounded(self, *args) end |
#to_localized_s ⇒ Object
5 6 7 |
# File 'lib/l10n/core_extensions/big_decimal_ext.rb', line 5 def to_localized_s Numeric.localize(self) end |