diff options
Diffstat (limited to 'ext/bigdecimal/lib/bigdecimal/math.rb')
-rw-r--r-- | ext/bigdecimal/lib/bigdecimal/math.rb | 4 |
1 files changed, 2 insertions, 2 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) |