pow

fun Int.pow(exponent: Int): Int(source)

Calculates the power of this integer to the given exponent. This is a shorthand for this.toDouble().pow(exponent.toDouble()).toInt().

Parameters

exponent

the exponent to raise this integer to.