37件ヒット
[1-37件を表示]
(0.030秒)
種類
- インスタンスメソッド (22)
- クラス (11)
- 文書 (4)
ライブラリ
- ビルトイン (33)
クラス
- Integer (22)
キーワード
-
NEWS for Ruby 3
. 0 . 0 (4) - Numeric (11)
検索結果
-
Integer
# bit _ length -> Integer (24388.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 (18125.0) -
整数の実装上のサイズをバイト数で返します。
...整数の実装上のサイズをバイト数で返します。
//emlist[][ruby]{
p 1.size # => 8
p 0x1_0000_0000.size # => 8
//}
@see Integer#bit_length... -
NEWS for Ruby 3
. 0 . 0 (24.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...ws the help message via the pager designated by the value.
16754
=== `--backtrace-limit` option
The `--backtrace-limit` option limits the maximum length of a backtrace.
8661
== Core classes updates
Outstanding ones only.
* Array
* The following methods now return Array instances instead o......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......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 (18.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 - - - -...