pow

infix fun Decimal.pow(n: Int): Decimal

Raises two Decimal.

Return

the Decimal that is the exponent of the two provided decimals.

Parameters

n

the Decimal to raise to


fun Decimal.pow(n: Int, scale: Int): Decimal

Raises two Decimal to a given precision.

Return

the Decimal that is the exponent of the two provided decimals.

Parameters

n

the Decimal to raise to

scale

The number of digits a rounded value should have after its decimal point.


fun Decimal.pow(n: Int, scale: Int, roundingMode: RoundingMode = RoundingMode.RoundHalfEven): Decimal

Raises two Decimal to a given precision.

Return

the Decimal that is the exponent of the two provided decimals.

Parameters

n

the Decimal to raise to

scale

The number of digits a rounded value should have after its decimal point.

roundingMode

The RoundingMode to apply when scaling.