DecimalMath.Log2 Method

Returns the natural (base e) logarithm of a specified number.

Definition

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

Parameters

value  Decimal
A number whose logarithm is to be found.

Return Value

Decimal
One of the values in the following table. value parameterReturn value Positive The natural logarithm of value; that is, ln value, or log edZero System.Double.NegativeInfinityNegative System.Double.NaNEqual to System.Double.NaNSystem.Double.NaNEqual to System.Double.PositiveInfinitySystem.Double.PositiveInfinity

Exceptions

OverflowException

value is zero.

ArgumentOutOfRangeException

value is less than zero.

See Also