るりまサーチ (Ruby 2.2.0)

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

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

検索結果

Bignum#to_f -> Float (117607.0)

値を浮動小数点数(Float)に変換します。

値を浮動小数点数(Float)に変換します。

Bignum#eql?(other) -> bool (63340.0)

self と other のクラスが等しくかつ同じ値である場合に true を返します。 そうでない場合に false を返します。

self と other のクラスが等しくかつ同じ値である場合に true を返します。
そうでない場合に false を返します。

@param other self と比較したい数値。

(1 << 64) == (1 << 64).to_f # => true
(1 << 64).eql?((1 << 64).to_f) # => false