11件ヒット
[1-11件を表示]
(0.021秒)
別のキーワード
ライブラリ
- ビルトイン (11)
検索結果
-
Numeric
# real? -> bool (18149.0) -
常に true を返します。(Complex またはそのサブクラスではないことを意味します。)
...す。(Complex またはそのサブクラスではないことを意味します。)
Numeric のサブクラスは、このメソッドを適切に再定義しなければなりません。
//emlist[例][ruby]{
10.real? # => true
-10.real? # => true
0.1.real?......# => true
Rational(2, 3).real? # => true
//}
@see Numeric#integer?、Complex#real?...