diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-13 15:28:30 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-12-13 15:28:30 +0000 |
commit | 61e58f7dc480f9833b6b2e4c71d58e016536ce76 (patch) | |
tree | c1fe649f9a3885ffe7795b867f65a4f5aa5dcec5 /ext/bigdecimal/lib | |
parent | e712ad9cd79dcedf3eea4b888faeeae8462c0a2b (diff) |
bigdecimal: version 1.3.3
Import bigdecimal version 1.3.3. The full commit log is here:
https://github.com/ruby/bigdecimal/compare/v1.3.2...v1.3.3
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/lib')
-rw-r--r-- | ext/bigdecimal/lib/bigdecimal/math.rb | 4 | ||||
-rw-r--r-- | ext/bigdecimal/lib/bigdecimal/util.rb | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/math.rb b/ext/bigdecimal/lib/bigdecimal/math.rb index ef1a02b38f..0b9d0648bb 100644 --- a/ext/bigdecimal/lib/bigdecimal/math.rb +++ b/ext/bigdecimal/lib/bigdecimal/math.rb @@ -37,7 +37,7 @@ module BigMath # Computes the square root of +decimal+ to the specified number of digits of # precision, +numeric+. # - # BigMath.sqrt(BigDecimal.new('2'), 16).to_s + # BigMath.sqrt(BigDecimal('2'), 16).to_s # #=> "0.1414213562373095048801688724e1" # def sqrt(x, prec) @@ -140,7 +140,7 @@ module BigMath # # If +decimal+ is NaN, returns NaN. # - # BigMath.atan(BigDecimal.new('-1'), 16).to_s + # BigMath.atan(BigDecimal('-1'), 16).to_s # #=> "-0.785398163397448309615660845819878471907514682065e0" # def atan(x, prec) diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb index d32eaf561a..911fa6fe3a 100644 --- a/ext/bigdecimal/lib/bigdecimal/util.rb +++ b/ext/bigdecimal/lib/bigdecimal/util.rb @@ -83,7 +83,7 @@ class BigDecimal < Numeric # # require 'bigdecimal/util' # - # d = BigDecimal.new("3.14") + # d = BigDecimal("3.14") # d.to_digits # => "3.14" # def to_digits @@ -103,7 +103,7 @@ class BigDecimal < Numeric # # require 'bigdecimal/util' # - # d = BigDecimal.new("3.14") + # d = BigDecimal("3.14") # d.to_d # => 0.314e1 # def to_d |