るりまサーチ

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

関連するキーワード

  1. rexml
  2. _builtin
  3. openssl
  4. rexml
  5. zlib

ライブラリ

キーワード

検索結果

Bignum#<<(bits) -> Fixnum | Bignum (18113)

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

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

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

printf("%#b\n", 0b0101 << 1) #=> 0b1010
p -1 << 1 #=> -2...

Bignum#**(other) -> Integer | Float | Rational (13)

冪(べき)乗を計算します。other が 0 以下の場合、計算結果を Rational オブジェクトで返します。

...乗を計算します。other が 0 以下の場合、計算結果を
Rational オブジェクトで返します。

(1<<32).rpower(2) # => 18446744073709551616
(1<<32).rpower(-2) # => Rational(1, 18446744073709551616)

@param other 自身を other 乗する数...

Bignum#rpower(other) -> Integer | Float | Rational (13)

冪(べき)乗を計算します。other が 0 以下の場合、計算結果を Rational オブジェクトで返します。

...乗を計算します。other が 0 以下の場合、計算結果を
Rational オブジェクトで返します。

(1<<32).rpower(2) # => 18446744073709551616
(1<<32).rpower(-2) # => Rational(1, 18446744073709551616)

@param other 自身を other 乗する数...

Bignum#quo(other) -> Rational (7)

商を計算して計算結果を Rational オブジェクトで返します。

...商を計算して計算結果を Rational オブジェクトで返します。

@param other 自身を割る数

例:

(1<<32).quo(2) # => Rational(2147483648, 1)...