flt.eql?(obj) â true or false
Instance Public methods
Returns true
only if obj is a Float
with
the same value as flt. Contrast this with Float#==
,
which performs type conversions. The result of NaN.eql?(NaN)
is undefined, so the implementation-dependent value is returned.
1 | 1 . 0 .eql?( 1 ) #=> false |
Please login to continue.