るりまサーチ

最速Rubyリファレンスマニュアル検索!
1186件ヒット [401-500件を表示] (0.358秒)
トップページ > クエリ:Kernel.#Integer[x] > クエリ:AI_V4MAPPED_CFG[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

クラス

モジュール

検索結果

<< < ... 3 4 5 6 7 ... > >>

Kernel.#BigDecimal(s, exception: true) -> BigDecimal | nil (21006.0)

引数で指定した値を表す BigDecimal オブジェクトを生成します。

...引数で指定した値を表す BigDecimal オブジェクトを生成します。

@param s 数値を表現する初期値を文字列、Integer
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無...

Kernel.#BigDecimal(s, n) -> BigDecimal (21006.0)

引数で指定した値を表す BigDecimal オブジェクトを生成します。

...引数で指定した値を表す BigDecimal オブジェクトを生成します。

@param s 数値を表現する初期値を文字列、Integer
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無...

Kernel.#BigDecimal(s, n, exception: true) -> BigDecimal | nil (21006.0)

引数で指定した値を表す BigDecimal オブジェクトを生成します。

...引数で指定した値を表す BigDecimal オブジェクトを生成します。

@param s 数値を表現する初期値を文字列、Integer
Float、Rational、BigDecimal オブジェクトのい
ずれかで指定します。
文字列中のスペースは無...

Kernel.#putc(ch) -> object (21006.0)

文字 ch を 標準出力 $stdout に出力します。

...用にオープンされていなければ発生します。
@raise Errno::EXXX 出力に失敗した場合に発生します。
@raise TypeError Integer に変換できないオブジェクトを引数に
指定した場合に発生します。

//emlist[例][ruby]{
putc("ch")
putc...

Kernel.#test(cmd, file1, file2) -> bool (21002.0)

2ファイル間のファイルテストを行います。

2ファイル間のファイルテストを行います。

@param cmd 以下に示す文字リテラル、文字列、あるいは同じ文字を表す数値
です。文字列の場合はその先頭の文字だけをコマンドとみなします。
@param file1 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@param file2 テストするファイルのパスを表す文字列か IO オブジェクトを指定します。
@return 真偽値を返します。

以下は cmd として指定できる文字リテラルとその意味です。

: ?=
ファイル1とファイル2の最終更新時刻が等しい
: ?>
フ...

絞り込み条件を変える

static VALUE rb_f_integer(VALUE obj, VALUE arg) (6132.0)

Kernel.#Integer の実体です。

...
Kernel.#Integer
の実体です。...

Ruby用語集 (156.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...大きな整数オブジェクトが属す
クラスだった。Ruby 2.4 で Fixnum と共に Integer に一本化された。
このとき Bignum は形式的には残されたが単なる Integer のエイリアスとなった。

: blade
Ruby の各種メーリングリストのアーカイ...
...く実装するための手法の一つ。

例えば新しい数値クラス N を定義し、Integer と N の演算を可能にしたいとする。
Integer
と N の加算を行うと、Integer 側では相手が未知のため、自身を引数に
まず相手側の N#coerce を呼ぶ。N...
...、既に加算が定義された
オブジェクトのペアに変換して返す。Integer 側ではそれらの加算を行う。
この方法では、N#coerce さえ適切に定義しておけば、Integer 側を変更せずに N という
数値クラスを定義できる。

参照:N...

String#hex -> Integer (131.0)

文字列に 16 進数で数値が表現されていると解釈して整数に変換します。 接頭辞 "0x", "0X" とアンダースコアは無視されます。 文字列が [_0-9a-fA-F] 以外の文字を含むときはその文字以降を無視します。

...# => 0
p "10z".hex # => 16
p "1_0".hex # => 16

p "".hex # => 0
//}

@see String#oct, String#to_i, String#to_f,
Kernel.#Integer
, Kernel.#Float

このメソッドの逆に数値を文字列に変換するには
Kernel
.#sprintf, String#%,
Integer
#to_s
などを使ってください。...

String#oct -> Integer (131.0)

文字列を 8 進文字列であると解釈して、整数に変換します。

...{
p "-010".oct # => -8
p "-0x10".oct # => -16
p "-0b10".oct # => -2

p "1_0_1x".oct # => 65
//}

@see String#hex, String#to_i, String#to_f,
Kernel.#Integer
, Kernel.#Float

逆に、数値を文字列に変換するにはKernel.#sprintf,
String#%, Integer#to_s を使用します。...

String#to_i(base = 10) -> Integer (131.0)

文字列を 10 進数表現された整数であると解釈して、整数に変換します。

...する整数。0 か、2〜36 の整数。
@return 整数

このメソッドの逆に数値を文字列に変換するには、
Kernel
.#sprintf, String#%, Integer#to_s
を使用します。

String#hex, String#oct, String#to_f,
Kernel.#Integer
, Kernel.#Float
も参照してください。...

絞り込み条件を変える

Shell#[](command, file1, file2 = nil) -> bool | Time | Integer | nil (130.0)

Kernel.#test や FileTest のメソッドに処理を委譲します。

...
Kernel
.#test や FileTest のメソッドに処理を委譲します。

@param command 数値、またはサイズが 1 の文字列の場合は Kernel.#test に処理委譲します。
2 文字以上の文字列の場合は FileTest のメソッドとして実行します。

@para...
...ell'
Shell.verbose = false
sh = Shell.new
begin
sh.mkdir("foo")
rescue
end
p sh[?e, "foo"] # => true
p sh[:e, "foo"] # => true
p sh["e", "foo"] # => true
p sh[:exists?, "foo"] # => true
p sh["exists?", "foo"] # => true

@see Kernel.#test, FileTest...
<< < ... 3 4 5 6 7 ... > >>