rat.fdiv(numeric) â float
Instance Public methods
Performs division and returns the value as a float.
1 2 3 | Rational( 2 , 3 ).fdiv( 1 ) #=> 0.6666666666666666 Rational( 2 , 3 ).fdiv( 0 . 5 ) #=> 1.3333333333333333 Rational( 2 ).fdiv( 3 ) #=> 0.6666666666666666 |
Please login to continue.