209件ヒット
[1-100件を表示]
(0.175秒)
ライブラリ
- ビルトイン (72)
- bigdecimal (24)
- fiddle (48)
- openssl (24)
クラス
- BigDecimal (24)
-
Fiddle
:: Pointer (48) - Integer (24)
- Numeric (12)
- Object (12)
-
OpenSSL
:: BN (24)
モジュール
- Kernel (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - Integer (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - Numeric (12)
- [] (12)
-
rb
_ to _ int (12) -
rb
_ to _ integer (12) -
to
_ ptr (12)
検索結果
先頭5件
-
Numeric
# to _ int -> Integer (24229.0) -
self.to_i と同じです。
...self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}... -
Object
# to _ int -> Integer (24207.0) -
オブジェクトの Integer への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...が使われるすべての場面で代置可能であるような、
* 整数そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_int
1
end
end
ary = [:a, :b, :c]
p(ary[Foo.new]) # => :b
//}
@see Kernel.#Integer... -
Integer
# to _ int -> self (21208.0) -
self を返します。
...self を返します。
//emlist[][ruby]{
10.to_i # => 10
//}... -
BigDecimal
# to _ int -> Integer (21202.0) -
self の小数点以下を切り捨てて整数に変換します。
self の小数点以下を切り捨てて整数に変換します。
@raise FloatDomainError self が無限大や NaN であった場合に発生します。 -
Fiddle
:: Pointer # to _ int -> Integer (21202.0) -
自身が指すアドレスを整数で返します。
自身が指すアドレスを整数で返します。 -
OpenSSL
:: BN # to _ int -> Integer (21202.0) -
自身を Integer のインスタンスに変換します。
自身を Integer のインスタンスに変換します。
@raise OpenSSL::BNError 変換に失敗した場合に発生します -
Integer
# to _ i -> self (18108.0) -
self を返します。
...self を返します。
//emlist[][ruby]{
10.to_i # => 10
//}... -
BigDecimal
# to _ i -> Integer (18102.0) -
self の小数点以下を切り捨てて整数に変換します。
self の小数点以下を切り捨てて整数に変換します。
@raise FloatDomainError self が無限大や NaN であった場合に発生します。 -
Fiddle
:: Pointer # to _ i -> Integer (18102.0) -
自身が指すアドレスを整数で返します。
自身が指すアドレスを整数で返します。