るりまサーチ

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

別のキーワード

  1. _builtin >
  2. bigdecimal >
  3. float >
  4. module >
  5. complex >

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

BigDecimal#>(other) -> bool (18103.0)

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

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

BigDecimal#<=>(other) -> -1 | 0 | 1 | nil (6103.0)

self が other より大きい場合に 1 を、等しい場合に 0 を、小さい場合には -1 をそれぞれ返します。

self が other より大きい場合に 1 を、等しい場合に 0 を、小さい場合には
-1 をそれぞれ返します。

self と other が比較できない場合には nil を返します。

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

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

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

BigDecimal#%(n) -> BigDecimal (103.0)

self を n で割った余りを返します。

...指定します。

//emlist[][ruby]{
require 'bigdecimal'
x = BigDecimal((2**100).to_s)
( x % 3).to_i # => 1
(-x % 3).to_i # => 2
( x % -3).to_i # => -2
(-x % -3).to_i # => -1
//}

戻り値は n と同じ符号になります。これは BigDecimal#remainder とは
異なる点に注意してく...

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

積を計算します。

...積を計算します。

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

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

絞り込み条件を変える

BigDecimal#**(n) -> BigDecimal (103.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 (103.0)

和を計算します。

...和を計算します。

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

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

BigDecimal#+@ -> self (103.0)

self を返します。

self を返します。

BigDecimal#-(other) -> BigDecimal (103.0)

差を計算します。

...差を計算します。

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

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

BigDecimal#-@ -> BigDecimal (103.0)

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>