method

eql?

v2_5_5 - Show latest stable - Class: Float
eql?(p1)
public

Returns true only if obj is a Float with the same value as float. Contrast this with Float#==, which performs type conversions.

1.0.eql?(1)   #=> false

The result of NaN.eql?(NaN) is undefined, so an implementation-dependent value is returned.