るりまサーチ (Ruby 3.1)

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

別のキーワード

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

ライブラリ

クラス

キーワード

検索結果

Float#phase -> 0 | Float (72616.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

ただし、自身が NaN(Not a number) であった場合は、NaN を返します。...

Complex#phase -> Float (45616.0)

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

...0).arg #=> 3.141592653589793
Complex(-1, -0).arg #=> 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...

Float#angle -> 0 | Float (27316.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

ただし、自身が NaN(Not a number) であった場合は、NaN を返します。...

Float#arg -> 0 | Float (27316.0)

自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

...自身の偏角(正の数なら 0、負の数なら Math::PI)を返します。

//emlist[例][ruby]{
1.arg # => 0
-1.arg # => 3.141592653589793
//}

ただし、自身が NaN(Not a number) であった場合は、NaN を返します。...

Complex#angle -> Float (316.0)

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

...0).arg #=> 3.141592653589793
Complex(-1, -0).arg #=> 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 (316.0)

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

...0).arg #=> 3.141592653589793
Complex(-1, -0).arg #=> 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...