aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/number_helper.rb
diff options
context:
space:
mode:
authoramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-22 07:17:13 +0530
committeramitkumarsuroliya <amitkumarsuroliya@gmail.com>2015-09-22 07:38:02 +0530
commitf077cc6f41cdedf1d5cdeb994c9fa3335fa51126 (patch)
tree485b7bab6f1050e0ca74f4dbcc557a5d40f9c9e7 /activesupport/lib/active_support/number_helper.rb
parentb694796da076b1a0ceb0ffbaa66964c1914397c8 (diff)
downloadrails-f077cc6f41cdedf1d5cdeb994c9fa3335fa51126.tar.gz
rails-f077cc6f41cdedf1d5cdeb994c9fa3335fa51126.tar.bz2
rails-f077cc6f41cdedf1d5cdeb994c9fa3335fa51126.zip
Correcting output of `number_to_percentage` example in `number_helper` [ci skip]
Here is correct output of `number_to_percentage(100, format: "%n %”)`
Diffstat (limited to 'activesupport/lib/active_support/number_helper.rb')
-rw-r--r--activesupport/lib/active_support/number_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/number_helper.rb b/activesupport/lib/active_support/number_helper.rb
index 9762d95145..504f96961a 100644
--- a/activesupport/lib/active_support/number_helper.rb
+++ b/activesupport/lib/active_support/number_helper.rb
@@ -118,7 +118,7 @@ module ActiveSupport
# number_to_percentage(1000, locale: :fr) # => 1 000,000%
# number_to_percentage:(1000, precision: nil) # => 1000%
# number_to_percentage('98a') # => 98a%
- # number_to_percentage(100, format: '%n %') # => 100 %
+ # number_to_percentage(100, format: '%n %') # => 100.000 %
def number_to_percentage(number, options = {})
NumberToPercentageConverter.convert(number, options)
end