1件ヒット
[1-1件を表示]
(0.054秒)
ライブラリ
- ビルトイン (1)
検索結果
-
Numeric
# truncate -> Integer (18610.0) -
0 から 自身までの整数で、自身にもっとも近い整数を返します。
...0 から 自身までの整数で、自身にもっとも近い整数を返します。
//emlist[例][ruby]{
1.truncate #=> 1
1.2.truncate #=> 1
(-1.2).truncate #=> -1
(-1.5).truncate #=> -1
//}
@see Numeric#ceil, Numeric#floor, Numeric#round...