るりまサーチ

最速Rubyリファレンスマニュアル検索!
26467件ヒット [1-100件を表示] (0.234秒)
トップページ > クエリ:-[x] > クエリ:I[x] > クエリ:>[x] > クエリ:INTEGER[x]

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. kernel $-i

ライブラリ

クラス

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

Integer#-(other) -> Numeric (30306.0)

算術演算子。差を計算します。

...算術演算子。差を計算します。

@param other 二項演算の右側の引数(対象)
@return 計算結果

//emlist[][ruby]{
4 - 1 #=> 3
//}...

Integer#>(other) -> bool (30212.0)

比較演算子。数値として大きいか判定します。

...演算子。数値として大きいか判定します。

@param other 比較対象の数値
@return self よりも other の方が小さい場合 true を返します。
そうでなければ false を返します。

//emlist[][ruby]{
1 > 0 # => true
1 > 1 # => false
//}...

OpenSSL::ASN1::INTEGER -> Integer (24618.0)

ASN.1 UNIVERSAL タグの、 INTEGER のタグ番号 2 を表す定数です。

...ASN.1 UNIVERSAL タグの、
INTEGER
のタグ番号 2 を表す定数です。...

Integer#integer? -> true (24413.0)

常に真を返します。

...常に真を返します。

//emlist[][ruby]{
1.integer? # => true
1.0.integer? # => false
//}...

OpenSSL::SSL::OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION -> Integer (18601.0)

セッション再ネゴシエーションをした場合にサーバ側で 常に新しいセッションを生成するフラグです。

...セッション再ネゴシエーションをした場合にサーバ側で
常に新しいセッションを生成するフラグです。

OpenSSL::SSL::SSLContext#options= で利用します。...

絞り込み条件を変える

Integer#denominator -> Integer (18513.0)

分母(常に1)を返します。

...分母(常に1)を返します。

@return 分母を返します。

//emlist[][ruby]{
10.denominator # => 1
-
10.denominator # => 1
//}

@see Integer#numerator...

Integer#-@ -> Integer (18441.0)

単項演算子の - です。 self の符号を反転させたものを返します。

...単項演算子の - です。
self の符号を反転させたものを返します。

//emlist[][ruby]{
-
10 # => -10
-
-10 # => 10
//}...

Integer#>>(bits) -> Integer (18413.0)

シフト演算子。bits だけビットを右にシフトします。

...子。bits だけビットを右にシフトします。

右シフトは、符号ビット(最上位ビット(MSB))が保持されます。
bitsが実数の場合、小数点以下を切り捨てた値でシフトします。

@param bits シフトさせるビット数

//emlist[][ruby]{
printf("%#...
...b\n", 0b0101 >> 1) # => 0b10
p -1 >> 1 # => -1
//}...

Integer#inspect(base=10) -> String (18412.0)

整数を 10 進文字列表現に変換します。

...に変換します。

//emlist[][ruby]{
p 10.to_s(2) # => "1010"
p 10.to_s(8) # => "12"
p 10.to_s(16) # => "a"
p 35.to_s(36) # => "z"
//}

@return 数値の文字列表現
@param base 基数となる 2 - 36 の数値。
@raise ArgumentError base に 2 - 36 以外の数値を指定し...

Integer#remainder(other) -> Numeric (18360.0)

self を other で割った余り r を返します。

...//emlist[][ruby]{
5.remainder(3) # => 2
-
5.remainder(3) # => -2
5.remainder(-3) # => 2
-
5.remainder(-3) # => -2

-
1234567890987654321.remainder(13731) # => -6966
-
1234567890987654321.remainder(13731.24) # => -9906.22531493148
//}

@see Integer#divmod, Integer#modulo, Numeric#modul...

絞り込み条件を変える

<< 1 2 3 ... > >>