зеркало из https://github.com/github/ruby.git
* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
variables warning, reported by Aaron Patterson. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8b09bf2a72
Коммит
0ec61a3156
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 16 09:33:00 2010 Kenta Murata <mrkn@mrkn.jp>
|
||||||
|
|
||||||
|
* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
|
||||||
|
variables warning, reported by Aaron Patterson.
|
||||||
|
|
||||||
Tue Nov 16 06:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Nov 16 06:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* pack.c (PACK_ITEM_ADJUST): return nil not result array and yield
|
* pack.c (PACK_ITEM_ADJUST): return nil not result array and yield
|
||||||
|
|
|
@ -35,7 +35,7 @@ class BigDecimal < Numeric
|
||||||
self.to_s
|
self.to_s
|
||||||
else
|
else
|
||||||
i = self.to_i.to_s
|
i = self.to_i.to_s
|
||||||
s,f,y,z = self.frac.split
|
_,f,_,z = self.frac.split
|
||||||
i + "." + ("0"*(-z)) + f
|
i + "." + ("0"*(-z)) + f
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче