360件ヒット
[1-100件を表示]
(0.137秒)
別のキーワード
ライブラリ
- bigdecimal (360)
検索結果
先頭5件
-
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#*...