instance method Float#eql?
eql?(other) -> bool
-
自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。 そうでない場合に false を返します。
- [PARAM] other:
- 自身と比較したい数値を指定します。
例:
1.0.eql?(1) #=> false 1.0.eql?(1.0) #=> true
class Float
eql?(other) -> bool
自身と other のクラスが等しくかつ == メソッドで比較して等しい場合に true を返します。 そうでない場合に false を返します。
例:
1.0.eql?(1) #=> false 1.0.eql?(1.0) #=> true