зеркало из 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>
|
||||
|
||||
* pack.c (PACK_ITEM_ADJUST): return nil not result array and yield
|
||||
|
|
|
@ -35,7 +35,7 @@ class BigDecimal < Numeric
|
|||
self.to_s
|
||||
else
|
||||
i = self.to_i.to_s
|
||||
s,f,y,z = self.frac.split
|
||||
_,f,_,z = self.frac.split
|
||||
i + "." + ("0"*(-z)) + f
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче