==(p1) public

Returns true only if obj has the same value as float. Contrast this with Float#eql?, which requires obj to be a Float.

1.0 == 1   #=> true

The result of NaN == NaN is undefined, so an implementation-dependent value is returned.

Show source
Register or log in to add new notes.