41件ヒット
[1-41件を表示]
(0.019秒)
種類
- インスタンスメソッド (24)
- クラス (12)
- 文書 (5)
ライブラリ
- ビルトイン (36)
クラス
- Integer (24)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (5) - Numeric (12)
検索結果
-
Integer
# bit _ length -> Integer (18197.0) -
self を表すのに必要なビット数を返します。
...by]{
(-2**12-1).bit_length # => 13
(-2**12).bit_length # => 12
(-2**12+1).bit_length # => 12
-0x101.bit_length # => 9
-0x100.bit_length # => 8
-0xff.bit_length # => 8
-2.bit_length # => 1
-1.bit_length # => 0
0.bit_length #......=> 0
1.bit_length # => 1
0xff.bit_length # => 8
0x100.bit_length # => 9
(2**12-1).bit_length # => 12
(2**12).bit_length # => 13
(2**12+1).bit_length # => 13
//}
@see Integer#size... -
Integer
# size -> Integer (18119.0) -
整数の実装上のサイズをバイト数で返します。
...整数の実装上のサイズをバイト数で返します。
//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}
@see Integer#bit_length... -
NEWS for Ruby 3
. 0 . 0 (12.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...eql? are now defined and will return true for separate Proc instances if the procs were created from the same block. 14267
* Queue / SizedQueue
* Queue#pop, SizedQueue#push and related methods may now invoke the `block`/`unblock` scheduler hooks in a non-blocking context. 16786
* Ractor......* Microarchitectural optimizations
* Native functions shared by multiple methods are deduplicated on JIT compaction.
* Decrease code size of hot paths by some optimizations and partitioning cold paths.
* Instance variables
* Eliminate some redundant checks.
* Skip......ubclasses.
* Method inlining support for some C methods
* `Kernel`: `#class`, `#frozen?`
* `Integer`: `#-@`, `#~`, `#abs`, `#bit_length`, `#even?`, `#integer?`, `#magnitude`, `#odd?`, `#ord`, `#to_i`, `#to_int`, `#zero?`
* `Struct`: reader methods for 10th or later member... -
Numeric (12.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...- o - o
arg | o - - - o - o
bit_length | - - o o - - -
ceil | o o -......- o o -
singleton_method_added | o - - - - - -
size | - - o o - - -
Numeric Integer Fixnum Bi......angle | o - o - o
arg | o - o - o
bit_length | - o - - -
ceil | o o o o -......round | o o o o -
singleton_method_added | o - - - -
size | - o - - -
step | o - - - -...