るりまサーチ (Ruby 2.6.0)

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

別のキーワード

  1. bigdecimal mode
  2. openssl fips_mode=
  3. bigdecimal round_mode
  4. readline vi_editing_mode
  5. readline emacs_editing_mode

ライブラリ

クラス

検索結果

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

積を計算します。

積を計算します。

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

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

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

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

@see BigDecimal#*