rat.numerator â integer
Instance Public methods
Returns the numerator.
1 2 3 4 | Rational( 7 ).numerator #=> 7 Rational( 7 , 1 ).numerator #=> 7 Rational( 9 , - 4 ).numerator #=> -9 Rational(- 2 , - 10 ).numerator #=> 1 |
Please login to continue.