EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.Log2 Method (Double)

Computes the Logarithm to Base 2 using Series Expansion.

[Visual Basic]
Overloads Public Shared Function Log2( _
   ByVal x As Double _
) As Decimal
[C#]
public static decimal Log2(
   double x
);

Parameters

x
We desire the logarithm to base 2 of this Value. Must be > 0

Return Value

Logaritm to base 2 of given Value

Exceptions

Exception TypeCondition
ArithmeticException Thrown when a non-positive value is passed.

See Also

DecimalOps Class | Esb.Math Namespace | DecimalOps.Log2 Overload List