るりまサーチ

最速Rubyリファレンスマニュアル検索!
758件ヒット [701-758件を表示] (0.188秒)
トップページ > クエリ:t[x] > クエリ:@[x] > 種類:インスタンスメソッド[x] > クラス:Integer[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

ライブラリ

キーワード

検索結果

<< < ... 6 7 8 >>

Integer#pred -> Integer (3108.0)

self から -1 した値を返します。

...self から -1 した値を返します。

//emlist[][ruby]{
1.pred #=> 0
(-1).pred #=> -2
//}

@
see Integer#next...

Integer#size -> Integer (3108.0)

整数の実装上のサイズをバイト数で返します。

...整数の実装上のサイズをバイト数で返します。

//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}

@
see Integer#bit_length...

Integer#succ -> Integer (3108.0)

self の次の整数を返します。

...self の次の整数を返します。

//emlist[][ruby]{
1.next #=> 2
(-1).next #=> 0
1.succ #=> 2
(-1).succ #=> 0
//}

@
see Integer#pred...

Integer#|(other) -> Integer (3108.0)

ビット二項演算子。論理和を計算します。

...ビット二項演算子。論理和を計算します。

@
param other 数値

//emlist[][ruby]{
1 | 1 # => 1
2 | 3 # => 3
//}...

Integer#prime? -> bool (3008.0)

自身が素数である場合、真を返します。 そうでない場合は偽を返します。

...自身が素数である場合、真を返します。
そうでない場合は偽を返します。

//emlist[例][ruby]{
require 'prime'
1.prime? # => false
2.prime? # => true
//}

@
see Prime#prime?...

絞り込み条件を変える

<< < ... 6 7 8 >>