るりまサーチ

最速Rubyリファレンスマニュアル検索!
12件ヒット [1-12件を表示] (0.166秒)

別のキーワード

  1. open3 popen2e
  2. socket af_e164
  3. matrix det_e
  4. matrix rank_e
  5. open3 capture2e

ライブラリ

検索結果

Numeric#real? -> bool (24227.0)

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

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

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

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

@see Numeric#integer?、Complex#real?...