DecimalMath.Exp Method

Returns e raised to the specified power.

Definition

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

Parameters

value  Decimal
A number specifying a power.

Return Value

Decimal
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.

Exceptions

OverflowException

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

See Also