summaryrefslogtreecommitdiff
path: root/ext/bigdecimal/lib
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
commitde20b0bf59e766b1aad7ca62bdca8b2bcfb6c649 (patch)
tree751455d650b2e75ff37e098442d36156dfc40c5b /ext/bigdecimal/lib
parenta179c38e4c5b75469703720efa45c09e6f6a40c6 (diff)
Trailing 0s in split removed.(to_digits changed).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/bigdecimal/lib')
-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 7a4a1e5..3340d53 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