|
ToolsNextPowerOf2 Method
|
Returns the next power of 2 after the input value x.
Namespace:
Accord.Math
Assembly:
Accord.Math (in Accord.Math.dll) Version: 3.8.0
Syntax public static int NextPowerOf2(
int x
)
Public Shared Function NextPowerOf2 (
x As Integer
) As Integer
Request Example
View SourceParameters
- x
- Type: SystemInt32
Input value x.
Return Value
Type:
Int32Returns the next power of 2 after the input value x.
See Also