|
ToolsPow2 Method
|
Calculates power of 2.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int Pow2(
int power
)
Public Shared Function Pow2 (
power As Integer
) As Integer
Request Example
View SourceParameters
- power
- Type: SystemInt32
Power to raise in.
Return Value
Type:
Int32Returns specified power of 2 in the case if power is in the range of
[0, 30]. Otherwise returns 0.
See Also