るりまサーチ

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

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. _builtin self
  4. tracepoint self
  5. codeobject document_self=

ライブラリ

キーワード

検索結果

<< 1 2 3 ... > >>

BigDecimal#+@ -> self (6219.0)

self を返します。

...
self
を返します。...

BigDecimal#-@ -> BigDecimal (6118.0)

self の符号を反転させたものを返します。

...
self
の符号を反転させたものを返します。...

BigDecimal#coerce(other) -> Array (62.0)

self と other が同じクラスになるよう、self か other を変換し [other, self] という配列にして返します。

...
self
と other が同じクラスになるよう、self か other を変換し [other,
self
] という配列にして返します。

@
param other 比較または変換するオブジェクト

BigDecimal
#coerce は Ruby における強制型変換のための機能です。
BigDecimal
オブジェ...
...オブジェクト間の各種の計算は
BigDecimal
#coerce の結果を元に行われます。

//emlist[][ruby]{
require "bigdecimal"
a = BigDecimal("1.0")
b = a / 2.0 # => 0.5e0
//}

other に Rational オブジェクトを指定した場合は self の有効桁数を
用いて変換を行い...

BigDecimal#**(n) -> BigDecimal (48.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。


@
see Integer#pow...

BigDecimal#power(n) -> BigDecimal (48.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。


@
see Integer#pow...

絞り込み条件を変える

BigDecimal#power(n, prec) -> BigDecimal (48.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。


@
see Integer#pow...

BigDecimal#**(n) -> BigDecimal (42.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。...

BigDecimal#power(n) -> BigDecimal (42.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。...

BigDecimal#power(n, prec) -> BigDecimal (42.0)

self の n 乗を計算します。

...
self
の n 乗を計算します。

戻り値の有効桁数は self の有効桁数の n 倍以上になります。

@
param n selfを other 乗する数を指定します。

@
param prec 有効桁数を整数で指定します。...

BigDecimal#add(other, n) -> BigDecimal (38.0)

和を計算します。

...和を計算します。

self
+ other を最大で n 桁まで計算します。計算結果の精度が n より大きい
ときは BigDecimal.mode で指定された方法で丸められます。

@
param other self に足す数を指定します。

@
param n 有効桁数を整数で指定しま...
...す。0 を指定した場合は
BigDecimal
#+ と同じ値を返します。

@
raise ArgumentError n に負の数を指定した場合に発生します。

@
see BigDecimal#+...

絞り込み条件を変える

BigDecimal#div(other, n) -> BigDecimal (38.0)

商を計算します。

...商を計算します。

self
/ other を最大で n 桁まで計算します。計算結果の精度が n より大きい
ときは BigDecimal.mode で指定された方法で丸められます。

@
param other self を割る数を指定します。

@
param n 有効桁数を整数で指定しま...
...す。省略するか 0 を指定した場合は
BigDecimal
#/ と同じ値を返します。

@
raise ArgumentError n に負の数を指定した場合に発生します。

@
see BigDecimal#/...

BigDecimal#mult(other, n) -> BigDecimal (38.0)

積を計算します。

...積を計算します。

self
* other を最大で n 桁まで計算します。計算結果の精度が n より大きい
ときは BigDecimal.mode で指定された方法で丸められます。

@
param other self に掛ける数を指定します。

@
param n 有効桁数を整数で指定し...
...ます。0 を指定した場合は
BigDecimal
#* と同じ値を返します。

@
raise ArgumentError n に負の数を指定した場合に発生します。

@
see BigDecimal#*...
<< 1 2 3 ... > >>