1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activesupport/lib/active_support/number_helper
Juanjo Bazán 60062cf39a Fix AS::NumberHelper results with rationals
:precision was incorrectly being applied to Rationals

before:
  ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
  => "3.3"
after:
  ActiveSupport::NumberHelper.number_to_rounded Rational(10, 3), precision: 2
  => "3.33"
2014-05-31 20:07:47 +02:00
..
number_converter.rb Stop using local variables everywhere, make use of the reader 2013-12-03 20:26:56 -02:00
number_to_currency_converter.rb Avoid a hash creation since defaults is a new hash already 2013-12-03 20:26:56 -02:00
number_to_delimited_converter.rb Use block parameter rather than $1 during gsub! so ActiveSupport::SafeBuffer values aren't mangled. 2014-05-12 17:13:19 +01:00
number_to_human_converter.rb Stop using local variables everywhere, make use of the reader 2013-12-03 20:26:56 -02:00
number_to_human_size_converter.rb Nodoc missing number helper classes in AS [ci skip] 2013-12-11 20:01:54 -02:00
number_to_percentage_converter.rb :sicssors: 2013-12-02 22:32:22 -02:00
number_to_phone_converter.rb Nodoc missing number helper classes in AS [ci skip] 2013-12-11 20:01:54 -02:00
number_to_rounded_converter.rb Fix AS::NumberHelper results with rationals 2014-05-31 20:07:47 +02:00