DecimalMath.Pow(Decimal, Decimal) Method

Returns a specified number raised to the specified power.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static decimal Pow(
	decimal value,
	decimal exponent
)

Parameters

value  Decimal
A decimal value to be raised to a power.
exponent  Decimal
A decimal value that specifies a power.

Return Value

Decimal
The number value raised to the power exponent.

Exceptions

DivideByZeroExceptionvalue is zero and exponent is less than zero.
OverflowException The result is too large to be represented by a decimal value.
ArgumentOutOfRangeException

Both value and exponent are zero

-or-

value is negative and exponent is not an integer.

See Also