Flowdock
method

numerator

Importance_1
Ruby latest stable (v1_9_3_392) - 0 notes - Class: Rational
numerator() public

Returns the numerator.

For example:

Rational(7).numerator        #=> 7
Rational(7, 1).numerator     #=> 7
Rational(9, -4).numerator    #=> -9
Rational(-2, -10).numerator  #=> 1
Show source
Register or log in to add new notes.