self ** other -> Float[permalink][rdoc][edit]-
算術演算子。冪を計算します。
- [PARAM]
other: - 二項演算の右側の引数(対象)
# 冪 p 1.2 ** 3.0 # => 1.7279999999999998 p 3.0 + 4.5 - 1.3 / 2.4 * 3 % 1.2 ** 3.0 # => 5.875 p 0.0 ** 0 # => 1.0 - [PARAM]
このマニュアルは既にメンテナンスが終了したバージョンの Ruby を対象としています。 最新版のマニュアルへ
self ** other -> Float[permalink][rdoc][edit]算術演算子。冪を計算します。
other:# 冪
p 1.2 ** 3.0 # => 1.7279999999999998
p 3.0 + 4.5 - 1.3 / 2.4 * 3 % 1.2 ** 3.0 # => 5.875
p 0.0 ** 0 # => 1.0