DecimalExtensionsPow(Decimal, Int32) Method

Returns the specified value raised to the specified power.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static decimal Pow(
	decimal value,
	int power
)

Parameters

value  Decimal
The value to be raised to a power.
power  Int32
The specified power.

Return Value

Decimal
The specified value raised to the specified power.

Exceptions

OverflowExceptionpower is too large for the result to fit in a Decimal value.

See Also