1件ヒット
[1-1件を表示]
(0.104秒)
クラス
- Numeric (1)
検索結果
-
Numeric
# to _ int -> Integer (100015.0) -
self.to_i と同じです。
self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}