るりまサーチ

最速Rubyリファレンスマニュアル検索!
60件ヒット [1-60件を表示] (0.093秒)
トップページ > クエリ:ruby[x] > 種類:インスタンスメソッド[x] > クエリ:-[x] > クエリ:r[x] > クラス:Numeric[x] > クエリ:real[x] > ライブラリ:ビルトイン[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method gets
  4. irb/input-method new
  5. matrix -

キーワード

検索結果

Numeric#real -> Numeric (24353.0)

自身を返します。

...す。

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

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

@see Numeric#imag、Complex#real...

Numeric#real? -> bool (12347.0)

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

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

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

//emlist[例][ruby]{
10.real? # => true
-
10.real? # => true
0....
...1.real? # => true
R
ational(2, 3).real? # => true
//}

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

Numeric#imaginary -> 0 (6228.0)

常に 0 を返します。

...常に 0 を返します。

//emlist[例][ruby]{
12.imag # => 0
-
12.imag # => 0
1.2.imag # => 0
-
1.2.imag # => 0
//}

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

@see Numeric#real、Complex#imag...

Numeric#integer? -> bool (6216.0)

自身が Integer かそのサブクラスのインスタンスの場合にtrue を返し ます。そうでない場合に false を返します。

...ger かそのサブクラスのインスタンスの場合にtrue を返し
ます。そうでない場合に false を返します。

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

//emlist[例][ruby]{
(1.0).integer? #=> false
(1).integer?...
...#=> true
//}

@see Numeric#real?...

Numeric#imag -> 0 (3128.0)

常に 0 を返します。

...常に 0 を返します。

//emlist[例][ruby]{
12.imag # => 0
-
12.imag # => 0
1.2.imag # => 0
-
1.2.imag # => 0
//}

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

@see Numeric#real、Complex#imag...

絞り込み条件を変える