るりまサーチ (Ruby 2.6.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.021秒)
トップページ > クラス:Complex[x] > バージョン:2.6.0[x] > クエリ:Complex[x] > クエリ:infinite?[x]

別のキーワード

  1. _builtin complex
  2. complex rationalize
  3. complex rect
  4. complex polar
  5. complex rectangular

ライブラリ

検索結果

Complex#infinite? -> nil | 1 (117361.0)

実部と虚部のどちらも無限大ではない場合に nil を、そうでない場合に 1 を返します。

...実部と虚部のどちらも無限大ではない場合に nil を、そうでない場合に 1 を返します。

//emlist[例][ruby]{
(1+1i).infinite? # => nil
(Float::INFINITY + 1i).infinite? # => 1
//}

@see Complex#finite?...