るりまサーチ

最速Rubyリファレンスマニュアル検索!
1083件ヒット [201-300件を表示] (0.046秒)
トップページ > クエリ:-[x] > クラス:BigDecimal[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 5 ... > >>

BigDecimal#sub(other, n) -> BigDecimal (107.0)

差を計算します。

...差を計算します。

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

@param other self から引く数を指定します。

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

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

@see BigDecimal#-...

BigDecimal#*(other) -> BigDecimal (101.0)

積を計算します。

...積を計算します。

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

計算結果の精度についてはlib:bigdecimal#precisionを参照してください。...

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

self の n 乗を計算します。

self の n 乗を計算します。

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

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

@param prec 有効桁数を整数で指定します。
self の n 乗を計算します。

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

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

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


@see Integer#pow

BigDecimal#+(other) -> BigDecimal (101.0)

和を計算します。

...和を計算します。

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

計算結果の精度についてはlib:bigdecimal#precisionを参照してください。...

BigDecimal#+@ -> self (101.0)

self を返します。

self を返します。

絞り込み条件を変える

BigDecimal#/(other) -> BigDecimal (101.0)

商を計算します。

...商を計算します。

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

詳細は Numeric#quo を参照して下さい。

計算結果の精度についてはlib:bigdecimal#precisionを参照してください。...

BigDecimal#<(other) -> bool (101.0)

self が other より小さい場合に true を、そうでない場合に false を返しま す。

self が other より小さい場合に true を、そうでない場合に false を返しま
す。

BigDecimal#<=(other) -> bool (101.0)

self が other より小さいか等しい場合に true を、そうでない場合に false を返します。

self が other より小さいか等しい場合に true を、そうでない場合に false
を返します。

BigDecimal#==(other) -> bool (101.0)

self が other と等しい場合に true を、そうでない場合に false を返します。

...self が other と等しい場合に true を、そうでない場合に false を返します。

それぞれの値は BigDecimal#coerce で変換して比較される場合があります。

//emlist[][ruby]{
require 'bigdecimal'
BigDecimal
('1.0') == 1.0 # => true
//}...

BigDecimal#===(other) -> bool (101.0)

self が other と等しい場合に true を、そうでない場合に false を返します。

...self が other と等しい場合に true を、そうでない場合に false を返します。

それぞれの値は BigDecimal#coerce で変換して比較される場合があります。

//emlist[][ruby]{
require 'bigdecimal'
BigDecimal
('1.0') == 1.0 # => true
//}...

絞り込み条件を変える

<< < 1 2 3 4 5 ... > >>