最速Rubyリファレンスマニュアル検索!
すべて(11)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
2.7.0(1)
3.0(1)
3.1(1)
3.2(1)
3.3(1)
11件ヒット
[1-11件を表示]
(0.216秒)
トップページ
>
クラス:
Integer
>
:
ビルトイン
>
:
_builtin
>
:
<<
>
:to_r
別のキーワード
_builtin new
_builtin inspect
_builtin []
_builtin to_s
_builtin each
検索結果
先頭1件
Integer
#
to
_
r -> Rational
Integer
#
to
_
r -> Rational
(26122.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
2.7.0
3.0
3.1
3.2
3.3
インスタンスメソッド
自身を Rational に変換します。
...
自身を Rational に変換します。
//emlist[][ruby]{
1.
to_r
# => (1/1)
(1
<<
64).
to_r
# => (18446744073709551616/1)
//}
...
Rational