instance method Integer#to_r

to_r -> Rational[permalink][rdoc][edit]

自身を Rational に変換します。


1.to_r        # => (1/1)
(1<<64).to_r  # => (18446744073709551616/1)