pow
Raises this value to the power x.
Special cases:
b.pow(0.0)
is1.0
b.pow(1.0) == b
b.pow(NaN)
isNaN
NaN.pow(x)
isNaN
forx != 0.0
b.pow(Inf)
isNaN
forabs(b) == 1.0
b.pow(x)
isNaN
forb < 0
andx
is finite and not an integer
Since Kotlin
1.2Raises this value to the integer power n.
See the other overload of pow for details.
Since Kotlin
1.2Raises this value to the power x.
Special cases:
b.pow(0.0)
is1.0
b.pow(1.0) == b
b.pow(NaN)
isNaN
NaN.pow(x)
isNaN
forx != 0.0
b.pow(Inf)
isNaN
forabs(b) == 1.0
b.pow(x)
isNaN
forb < 0
andx
is finite and not an integer
Since Kotlin
1.2Raises this value to the integer power n.
See the other overload of pow for details.
Since Kotlin
1.2Raises this value to the power x.
Special cases:
b.pow(0.0)
is1.0
b.pow(1.0) == b
b.pow(NaN)
isNaN
NaN.pow(x)
isNaN
forx != 0.0
b.pow(Inf)
isNaN
forabs(b) == 1.0
b.pow(x)
isNaN
forb < 0
andx
is finite and not an integer
Since Kotlin
1.2Raises this value to the integer power n.
See the other overload of pow for details.