るりまサーチ

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

別のキーワード

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

ライブラリ

検索結果

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

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

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

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

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