EsbDecimals - a Free Subset of ESBPCS for .NET

DecimalOps.TwoPow Method (Double)

Computes the Specified Power of 2 using series expansion.

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

Parameters

x
Power to raise 2 to

Return Value

2 ^ x, 2 raised to the power x

See Also

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