This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

eql?

        # Float.eql?

(from ruby core)
---
    eql?(other) -> true or false

---

Returns `true` if `other` is a Float with the same value as `self`,
`false` otherwise:

    2.0.eql?(2.0)            # => true
    2.0.eql?(1.0)            # => false
    2.0.eql?(1)              # => false
    2.0.eql?(Rational(2, 1)) # => false
    2.0.eql?(Complex(2, 0))  # => false

`Float::NAN.eql?(Float::NAN)` returns an implementation-dependent value.

Related: Float#== (performs type conversions).



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.