るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. matrix i
  5. ipaddr to_i

ライブラリ

検索結果

Numeric#real? -> bool (21132.0)

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

...ます。)

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

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

@see Numeric#integer?、...