るりまサーチ

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

別のキーワード

  1. _builtin float
  2. float rationalize
  3. float to_d
  4. fiddle type_float
  5. json float

ライブラリ

クラス

キーワード

検索結果

Complex#angle -> Float (18211.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...

Complex#arg -> Float (3111.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...

Complex#phase -> Float (3111.0)

自身の偏角を[-π,π]の範囲で返します。

...#=> 3.141592653589793
Complex(-1, -0.0).arg #=> -3.141592653589793

Complex(0, 0.0).arg #=> 0.0
Complex(0, -0.0).arg #=> -0.0
Complex(-0.0, 0).arg #=> 3.141592653589793
Complex(-0.0, -0.0).arg #=> -3.141592653589793
//}


@see Numeric#arg...