Skip to content
Browse files

Negative format example should use a negative number

  • Loading branch information...
1 parent 6ddd4a3 commit 7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c @mrduncan mrduncan committed Apr 15, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_view/helpers/number_helper.rb
View
2 actionpack/lib/action_view/helpers/number_helper.rb
@@ -100,7 +100,7 @@ def number_to_phone(number, options = {})
# 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

0 comments on commit 7f98b54

Please sign in to comment.
Something went wrong with that request. Please try again.