|
ToolsIsPowerOf2 Method
|
Checks if the specified integer is power of 2.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static bool IsPowerOf2(
int x
)
Public Shared Function IsPowerOf2 (
x As Integer
) As Boolean
Request Example
View SourceParameters
- x
- Type: SystemInt32
Integer number to check.
Return Value
Type:
BooleanReturns
true if the specified number is power of 2.
Otherwise returns
false.
See Also