pow
Raises this value to the power x.
Special cases:
b.pow(0.0)is1.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis 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.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis 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.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis 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.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis finite and not an integer
Since Kotlin
1.3Raises this value to the integer power n.
See the other overload of pow for details.
Since Kotlin
1.3Raises this value to the power x.
Special cases:
b.pow(0.0)is1.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis finite and not an integer
Since Kotlin
1.8Raises this value to the integer power n.
See the other overload of pow for details.
Since Kotlin
1.8Raises this value to the power x.
Special cases:
b.pow(0.0)is1.0b.pow(1.0) == bb.pow(NaN)isNaNNaN.pow(x)isNaNforx != 0.0b.pow(Inf)isNaNforabs(b) == 1.0b.pow(x)isNaNforb < 0andxis finite and not an integer
Since Kotlin
1.8Raises this value to the integer power n.
See the other overload of pow for details.