るりまサーチ

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

別のキーワード

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

ライブラリ

キーワード

検索結果

Numeric#imag -> 0 (24357.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#imaginary -> 0 (12357.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#real -> Numeric (3232.0)

自身を返します。

...します。

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

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

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