diff options
author | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 20:18:30 -0400 |
---|---|---|
committer | Matt Duncan <mrduncan@gmail.com> | 2011-04-15 20:18:30 -0400 |
commit | 7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c (patch) | |
tree | 3a29faf9d4267337254e4859ad9cf48770361346 /actionpack/lib/action_view | |
parent | 6ddd4a3d954cd81f96c747f515406be50041431a (diff) | |
download | rails-7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c.tar.gz rails-7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c.tar.bz2 rails-7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c.zip |
Negative format example should use a negative number
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/number_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/number_helper.rb b/actionpack/lib/action_view/helpers/number_helper.rb index 05a9c5b4f1..68ebedd328 100644 --- a/actionpack/lib/action_view/helpers/number_helper.rb +++ b/actionpack/lib/action_view/helpers/number_helper.rb @@ -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 |