pow

fun KBigDecimal.pow(exponent: Int): KBigDecimal

Calculates this KBigDecimal raised to the power of the specified integer exponent.

Receiver

The base KBigDecimal

Return

This KBigDecimal raised to the power of exponent

Parameters

exponent

The integer exponent (must be non-negative)

Throws

if the exponent is negative


fun KBigInteger.pow(exponent: Int): KBigInteger

Calculates this KBigInteger raised to the power of the specified integer exponent.

Receiver

The base KBigInteger

Return

This KBigInteger raised to the power of exponent

Parameters

exponent

The integer exponent (must be non-negative)

Throws

if the exponent is negative