eql?

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.0.eql?(1)   #=> false
doc_ruby_on_rails
2015-04-07 02:19:30
Comments
Leave a Comment

Please login to continue.