summaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal/lib
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-25 02:27:33 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-07-25 02:27:33 +0000
commit6a5aa582afd4cf9d627502fd4563a765c7274479 (patch)
tree4274191b73f4afe594f0791aebc094c94a83facd /ext/bigdecimal/lib
parentb504024bee26dd0fb0f0143907eca5ddec0676be (diff)
downloadruby-6a5aa582afd4cf9d627502fd4563a765c7274479.tar.gz
ruby-6a5aa582afd4cf9d627502fd4563a765c7274479.tar.xz
ruby-6a5aa582afd4cf9d627502fd4563a765c7274479.zip
Spec for div changed.
add,sub,mult,div now can specify exact digits number. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4154 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/lib')
-rw-r--r--ext/bigdecimal/lib/bigdecimal/util.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb
index d9b7ae313..369fe3fdd 100644
--- a/ext/bigdecimal/lib/bigdecimal/util.rb
+++ b/ext/bigdecimal/lib/bigdecimal/util.rb
@@ -63,7 +63,6 @@ end
class Rational < Numeric
# Convert Rational to BigDecimal
- # to_d returns an array [quotient,residue]
def to_d(nFig=0)
num = self.numerator.to_s
if nFig<=0