Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Negative format example should use a negative number

  • Loading branch information...
commit 7f98b544e3b29c7ffdb8cb4a2ad1da5d1a8c611c 1 parent 6ddd4a3
@mrduncan mrduncan authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.