Permalink
Browse files

Fixed documentation #1214

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1254 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
dhh committed Apr 30, 2005
1 parent 98306be commit 90b08c5b921d608f097adcf231e13eaa870dfede
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_view/helpers/number_helper.rb
@@ -51,9 +51,9 @@ def number_to_currency(number, options = {})
# The +number+ can contain a level of precision using the +precision+ key; default is 3
# The unit separator can be set using the +separator+ key; default is "."
# Examples:
- # number_to_precision(100) => 100.000%
- # number_to_precision(100, {:precision => 0}) => 100%
- # number_to_precision(302.0574, {:precision => 2}) => 302.06%
+ # number_to_percentage(100) => 100.000%
+ # number_to_percentage(100, {:precision => 0}) => 100%
+ # number_to_percentage(302.0574, {:precision => 2}) => 302.06%
def number_to_percentage(number, options = {})
options = options.stringify_keys
precision, separator = options.delete("precision") { 3 }, options.delete("separator") { "." }

0 comments on commit 90b08c5

Please sign in to comment.