Decimal Math.Exp 2 Method
Returns 2 raised to the specified power.
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
C#
The number e raised to the power value. If value equals System.Double.NaN or System.Double.PositiveInfinity, that value is returned. If value equals System.Double.NegativeInfinity, 0 is returned.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.2
public static decimal Exp2(
decimal value
)
Parameters
- value Decimal
- A number specifying a power.
Return Value
DecimalThe number e raised to the power value. If value equals System.Double.NaN or System.Double.PositiveInfinity, that value is returned. If value equals System.Double.NegativeInfinity, 0 is returned.
Exceptions
Overflow | The result is too large to be represented as a decimal number. |