851件ヒット
[1-100件を表示]
(0.013秒)
キーワード
- % (12)
- * (12)
- ** (12)
- + (12)
- +@ (12)
- - (12)
- -@ (12)
-
/ (12) - < (12)
- <= (12)
- <=> (12)
- == (12)
- === (12)
- > (12)
- >= (12)
-
_ dump (12) - abs (12)
- add (12)
- ceil (24)
- clone (8)
- coerce (12)
- div (24)
- divmod (12)
- dup (8)
- eql? (12)
- exponent (12)
- finite? (12)
- fix (12)
- floor (24)
- frac (12)
- hash (12)
- infinite? (12)
- inspect (12)
- modulo (12)
- mult (12)
- nan? (12)
- nonzero? (12)
- power (24)
- precs (12)
- quo (12)
- remainder (12)
- round (36)
-
save
_ exception _ mode (12) -
save
_ limit (12) -
save
_ rounding _ mode (12) - sign (12)
- split (12)
- sqrt (12)
- sub (12)
-
to
_ d (79) -
to
_ digits (12) -
to
_ f (12) -
to
_ i (12) -
to
_ int (12) -
to
_ r (12) -
to
_ s (24) - truncate (24)
- zero? (12)
検索結果
先頭5件
-
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 を返しま
す。