54件ヒット
[1-54件を表示]
(0.136秒)
ライブラリ
- ビルトイン (12)
- csv (12)
- pathname (12)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6)
クラス
- CSV (12)
- Pathname (12)
- Rational (12)
- Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6)
検索結果
先頭5件
-
Shell
:: CommandProcessor # truncate(path , length) -> 0 (27308.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Pathname
# truncate(length) -> 0 (27224.0) -
File.truncate(self.to_s, length) と同じです。
...File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
CSV
# truncate(path , length) -> 0 (24324.0) -
File#truncate に委譲します。
...File#truncate に委譲します。
@see File#truncate... -
Shell
# truncate(path , length) -> 0 (24308.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # truncate(path , length) -> 0 (24308.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Rational
# truncate(precision = 0) -> Rational | Integer (18326.0) -
小数点以下を切り捨てて値を整数に変換します。
...小数点以下を切り捨てて値を整数に変換します。
@param precision 計算結果の精度
@raise TypeError precision に整数以外のものを指定すると発生します。
//emlist[例][ruby]{
Rational(2, 3).to_i # => 0
Rational(3).to_i # => 3
Rational(300.6).to_i #......to_i # => -15
//}
precision を指定した場合は指定した桁数で切り捨てた整数か
Rational を返します。
//emlist[例][ruby]{
Rational('-123.456').truncate(+1) # => (-617/5)
Rational('-123.456').truncate(+1).to_f # => -123.4
Rational('-123.456').truncate(0) # =>......-123
Rational('-123.456').truncate(-1) # => -120
//}
@see Rational#ceil, Rational#floor...