120件ヒット
[1-100件を表示]
(0.237秒)
ライブラリ
- ビルトイン (48)
- bigdecimal (24)
- fiddle (24)
- openssl (24)
クラス
- BigDecimal (24)
-
Fiddle
:: Pointer (24) - Integer (24)
- Numeric (12)
- Object (12)
-
OpenSSL
:: BN (24)
検索結果
先頭5件
-
Numeric
# to _ int -> Integer (24230.0) -
self.to_i と同じです。
...self.to_i と同じです。
//emlist[例][ruby]{
(2+0i).to_int # => 2
Rational(3).to_int # => 3
//}... -
Object
# to _ int -> Integer (24208.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 (21209.0) -
self を返します。
...self を返します。
//emlist[][ruby]{
10.to_i # => 10
//}... -
BigDecimal
# to _ int -> Integer (21203.0) -
self の小数点以下を切り捨てて整数に変換します。
self の小数点以下を切り捨てて整数に変換します。
@raise FloatDomainError self が無限大や NaN であった場合に発生します。 -
Fiddle
:: Pointer # to _ int -> Integer (21203.0) -
自身が指すアドレスを整数で返します。
自身が指すアドレスを整数で返します。 -
OpenSSL
:: BN # to _ int -> Integer (21203.0) -
自身を Integer のインスタンスに変換します。
自身を Integer のインスタンスに変換します。
@raise OpenSSL::BNError 変換に失敗した場合に発生します -
Integer
# to _ i -> self (18109.0) -
self を返します。
...self を返します。
//emlist[][ruby]{
10.to_i # => 10
//}... -
BigDecimal
# to _ i -> Integer (18103.0) -
self の小数点以下を切り捨てて整数に変換します。
self の小数点以下を切り捨てて整数に変換します。
@raise FloatDomainError self が無限大や NaN であった場合に発生します。 -
Fiddle
:: Pointer # to _ i -> Integer (18103.0) -
自身が指すアドレスを整数で返します。
自身が指すアドレスを整数で返します。