238件ヒット
[1-100件を表示]
(0.080秒)
ライブラリ
- ビルトイン (105)
- bigdecimal (24)
- csv (12)
- logger (1)
- pathname (12)
- rake (12)
-
rubygems
/ specification (24) - scanf (6)
- shell (6)
-
shell
/ command-processor (6) -
shell
/ filter (6) - stringio (12)
- strscan (12)
クラス
- BigDecimal (24)
- CSV (12)
- File (12)
- Float (12)
-
Gem
:: Specification (24) - Integer (12)
-
Logger
:: Application (1) - Numeric (12)
- Pathname (12)
-
Rake
:: Application (12) - Rational (12)
-
Scanf
:: FormatString (6) - Shell (6)
-
Shell
:: CommandProcessor (6) -
Shell
:: Filter (6) - StringIO (12)
- StringScanner (12)
- Thread (45)
キーワード
-
add
_ runtime _ dependency (12) -
backtrace
_ locations (24) -
matched
_ size (12) - prune (6)
-
report
_ on _ exception= (9) -
runtime
_ dependencies (12) - start (1)
- status (12)
- truncate (138)
検索結果
先頭5件
-
Rake
:: Application # run (21102.0) -
Rake アプリケーションを実行します。
...下の 3 ステップを実行します。
* コマンドラインオプションを初期化します。Rake::Application#init
* タスクを定義します。Rake::Application#load_rakefile
* コマンドラインで指定されたタスクを実行します。Rake::Application#top_level... -
Pathname
# truncate(length) -> 0 (15201.0) -
File.truncate(self.to_s, length) と同じです。
...File.truncate(self.to_s, length) と同じです。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
CSV
# truncate(path , length) -> 0 (12301.0) -
File#truncate に委譲します。
...File#truncate に委譲します。
@see File#truncate... -
Integer
# truncate(ndigits = 0) -> Integer | Float (12301.0) -
0 から self までの整数で、自身にもっとも近い整数を返します。
...合、Float を返します。
小数点以下を、最大 n 桁にします。
負の整数を指定した場合、Integer を返します。
小数点位置から左に少なくとも n 個の 0 が並びます。
//emlist[][ruby]{
1.truncate......# => 1
1.truncate(2) # => 1.0
18.truncate(-1) # => 10
(-18).truncate(-1) # => -10
//}
@see Numeric#truncate... -
Shell
# truncate(path , length) -> 0 (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: CommandProcessor # truncate(path , length) -> 0 (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
Shell
:: Filter # truncate(path , length) -> 0 (12301.0) -
File クラスにある同名のクラスメソッドと同じです.
...File クラスにある同名のクラスメソッドと同じです.
@param path パスを表す文字列を指定します。
@param length 変更したいサイズを整数で与えます。
@see File.truncate... -
BigDecimal
# truncate -> Integer (12201.0) -
小数点以下の数を切り捨てて整数にします。
...ます)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").truncate(4).to_f # => 1.2345
BigDecimal("15.23456").truncate(-1).to_f # => 10.0
//}... -
BigDecimal
# truncate(n) -> BigDecimal (12201.0) -
小数点以下の数を切り捨てて整数にします。
...ます)。
n が負のときは小数点以上 n 桁目を操作します
(小数点位置から左に少なくとも n 個の 0 が並びます)。
//emlist[][ruby]{
require "bigdecimal"
BigDecimal("1.23456").truncate(4).to_f # => 1.2345
BigDecimal("15.23456").truncate(-1).to_f # => 10.0
//}... -
File
# truncate(length) -> 0 (12201.0) -
ファイルのサイズを最大 length バイトにします。
...書き込み用にオープンされていなければ発生します。
@raise Errno::EXXX サイズの変更に失敗した場合に発生します。
//emlist[例][ruby]{
IO.write("testfile", "1234567890")
File.open("testfile", "a") do |f|
f.truncate(5) # => 0
f.size # => 5
end
//}... -
Integer
# truncate(ndigits = 0) -> Integer (12201.0) -
0 から self までの整数で、自身にもっとも近い整数を返します。
...します。
負の整数を指定した場合、小数点位置から左に少なくとも n 個の 0 が並びます。
//emlist[][ruby]{
1.truncate # => 1
1.truncate(2) # => 1
18.truncate(-1) # => 10
(-18).truncate(-1) # => -10
//}
@see Numeric#truncate...