mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Negative format example should use a negative number
This commit is contained in:
parent
6ddd4a3d95
commit
7f98b544e3
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ module ActionView
|
|||
# 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.50, :negative_format => "(%u%n)")
|
||||
# number_to_currency(-1234567890.50, :negative_format => "(%u%n)")
|
||||
# # => ($1,234,567,890.51)
|
||||
# number_to_currency(1234567890.50, :unit => "£", :separator => ",", :delimiter => "")
|
||||
# # => £1234567890,50
|
||||
|
|
Loading…
Reference in a new issue