14件ヒット
[1-14件を表示]
(0.067秒)
検索結果
-
BigDecimal
# exponent -> Integer (21102.0) -
self の指数部を整数値で返します。
self の指数部を整数値で返します。 -
Integer
# **(other) -> Numeric (107.0) -
算術演算子。冪(べき乗)を計算します。
...> -3
5.pow(2, -8) # => -7
//}
計算結果が巨大すぎるときは ArgumentError が発生します。
//emlist[計算結果が巨大すぎる例][ruby]{
p 100**9999999999999999999
# => exponent is too large (ArgumentError)
//}
判定の閾値は変わりえます。
@see BigDecimal#power... -
Integer
# pow(other) -> Numeric (107.0) -
算術演算子。冪(べき乗)を計算します。
...> -3
5.pow(2, -8) # => -7
//}
計算結果が巨大すぎるときは ArgumentError が発生します。
//emlist[計算結果が巨大すぎる例][ruby]{
p 100**9999999999999999999
# => exponent is too large (ArgumentError)
//}
判定の閾値は変わりえます。
@see BigDecimal#power...