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
Try the revamped Kotlin docs design →
Try the revamped Kotlin docs design!
Raises this value to the power x.
Special cases:
b.pow(0.0)
is 1.0
b.pow(1.0) == b
b.pow(NaN)
is NaN
NaN.pow(x)
is NaN
for x != 0.0
b.pow(Inf)
is NaN
for abs(b) == 1.0
b.pow(x)
is NaN
for b < 0
and x
is finite and not an integer