DecimalMath.Exp2 Method

Returns 2 raised to the specified power.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.10.0
C#
public static decimal Exp2(
	decimal value
)

Parameters

value  Decimal
A number specifying a power.

Return Value

Decimal
Two raised to value, or zero when the result underflows.

Exceptions

OverflowException

The result is too large to be represented as a decimal number.

See Also