rat.to_r â self
Instance Public methods
Returns self.
1 2 | Rational( 2 ).to_r #=> (2/1) Rational(- 8 , 6 ).to_r #=> (-4/3) |
Returns self.
1 2 | Rational( 2 ).to_r #=> (2/1) Rational(- 8 , 6 ).to_r #=> (-4/3) |
Designed by : w10schools
service@w10schools.com
Please login to continue.