るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. << rexml::attribute#name
  2. add rexml::attribute#name
  3. handle_interrupt thread#raise
  4. inspect? irb::context#inspect_mode
  5. oid= openssl::x509::extension#oid

ライブラリ

検索結果

Numeric#real? -> bool (54445.0)

常に true を返します。(Complex またはそのサブクラスではないことを意味します。)

...ます。)

Numeric
のサブクラスは、このメソッドを適切に再定義しなければなりません。

//emlist[例][ruby]{
10.real? # => true
-10.real? # => true
0.1.real? # => true
Rational(2, 3).real? # => true
//}

@see Numeric#integer?、...