るりまサーチ (Ruby 2.3.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.039秒)
トップページ > クラス:Float[x] > クエリ:_builtin[x] > クエリ:float[x] > バージョン:2.3.0[x] > クエリ:eql?[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

ライブラリ

検索結果

Float#eql?(other) -> bool (105304.0)

自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。 そうでない場合に false を返します。

自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。
そうでない場合に false を返します。

@param other 自身と比較したい数値を指定します。

//emlist[例][ruby]{
1.0.eql?(1) # => false
1.0.eql?(1.0) # => true
//}