最速Rubyリファレンスマニュアル検索!
すべて(6)
2.1.0(1)
2.2.0(1)
2.3.0(1)
2.4.0(1)
2.5.0(1)
2.6.0(1)
6件ヒット
[1-6件を表示]
(0.025秒)
トップページ
>
クラス:
Complex
>
:
ビルトイン
>
:to_c
別のキーワード
_builtin to_s
openssl to_der
openssl to_s
openssl to_pem
_builtin to_a
検索結果
先頭1件
Complex
#
to
_
c -> self
Complex
#
to
_
c -> self
(18116.0)
2.1.0
2.2.0
2.3.0
2.4.0
2.5.0
2.6.0
インスタンスメソッド
self を返します。
...
self を返します。
//emlist[例][ruby]{
Complex
(2).
to_c
# => (2+0i)
Complex
(-8, 6).
to_c
# => (-8+6i)
//}
...