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

numerator

        # Float.numerator

(from ruby core)
---
    flo.numerator  ->  integer

---

Returns the numerator.  The result is machine dependent.

    n = 0.3.numerator    #=> 5404319552844595
    d = 0.3.denominator  #=> 18014398509481984
    n.fdiv(d)            #=> 0.3

See also Float#denominator.



      

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.