mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Cosmetic fix in number_to_currency docs
This commit is contained in:
@@ -100,10 +100,10 @@ module ActionView
|
||||
# number_to_currency(1234567890.50) # => $1,234,567,890.50
|
||||
# number_to_currency(1234567890.506) # => $1,234,567,890.51
|
||||
# number_to_currency(1234567890.506, :precision => 3) # => $1,234,567,890.506
|
||||
# number_to_currency(1234567890.506, :locale => :fr) # => 1 234 567 890,506 €
|
||||
# number_to_currency(1234567890.506, :locale => :fr) # => 1 234 567 890,51 €
|
||||
#
|
||||
# number_to_currency(-1234567890.50, :negative_format => "(%u%n)")
|
||||
# # => ($1,234,567,890.51)
|
||||
# # => ($1,234,567,890.50)
|
||||
# number_to_currency(1234567890.50, :unit => "£", :separator => ",", :delimiter => "")
|
||||
# # => £1234567890,50
|
||||
# number_to_currency(1234567890.50, :unit => "£", :separator => ",", :delimiter => "", :format => "%n %u")
|
||||
|
||||
Reference in New Issue
Block a user