summaryrefslogtreecommitdiffstats
path: root/ext/bigdecimal
diff options
context:
space:
mode:
authorshigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-05 14:03:57 +0000
committershigek <shigek@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-05 14:03:57 +0000
commit1817f59696430d8c76061db008f7bd918258ef68 (patch)
tree751455d650b2e75ff37e098442d36156dfc40c5b /ext/bigdecimal
parente17032c3dea4216f7ffbe445e5a9b43ea7d38658 (diff)
downloadruby-1817f59696430d8c76061db008f7bd918258ef68.tar.gz
ruby-1817f59696430d8c76061db008f7bd918258ef68.tar.xz
ruby-1817f59696430d8c76061db008f7bd918258ef68.zip
Trailing 0s in split removed.(to_digits changed).
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@4333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal')
-rw-r--r--ext/bigdecimal/lib/bigdecimal/util.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb
index 7a4a1e5e2..3340d5355 100644
--- a/ext/bigdecimal/lib/bigdecimal/util.rb
+++ b/ext/bigdecimal/lib/bigdecimal/util.rb
@@ -38,8 +38,6 @@ class BigDecimal < Numeric
else
i = self.to_i.to_s
s,f,y,z = self.frac.split
- f = f.gsub(/0+$/,"")
- f = "0" if f==""
i + "." + ("0"*(-z)) + f
end
end