るりまサーチ (Ruby 2.5.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.097秒)
トップページ > クラス:Complex[x] > バージョン:2.5.0[x] > ライブラリ:ビルトイン[x] > クエリ:_builtin[x] > クエリ:integer[x] > クエリ:denominator[x]

別のキーワード

  1. _builtin new
  2. _builtin inspect
  3. _builtin []
  4. _builtin to_s
  5. _builtin each

検索結果

Complex#denominator -> Integer (78652.0)

分母を返します。

...と虚部の分母の最小公倍数を整数で返します。

1 2 3+4i <- numerator(分子)
- + -i -> ----
2 3 6 <- denominator(分母)

//emlist[例][ruby]{
Complex
('1/2+2/3i').denominator # => 6
Complex
(3).numerator # => 1
//}

@see Complex#numerator...