BinaryMathNextPowerOfTwoGreaterOrEqualThan(UInt32) Method |
Return x if x is is a power of two, else return the smallest number >x, which is a power of two.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static uint NextPowerOfTwoGreaterOrEqualThan(
uint x
)
Parameters
- x UInt32
- The argument to test.
Return Value
UInt32The argument, if it is a power of two. Else the next greater number which is a power of two.
See Also