るりまサーチ

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

クラス

キーワード

検索結果

<< 1 2 3 ... > >>

BigDecimal#%(n) -> BigDecimal (3.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 (3.0)

積を計算します。

...積を計算します。

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

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

BigDecimal#**(n) -> BigDecimal (3.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 (3.0)

和を計算します。

...和を計算します。

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

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

BigDecimal#+@ -> self (3.0)

self を返します。

self を返します。

絞り込み条件を変える

BigDecimal#-(other) -> BigDecimal (3.0)

差を計算します。

...差を計算します。

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

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

BigDecimal#-@ -> BigDecimal (3.0)

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

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

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

商を計算します。

...商を計算します。

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

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

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

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

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

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

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

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

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

絞り込み条件を変える

<< 1 2 3 ... > >>