BitMathIsPowerOfTwo(Int64) Method
Determines if the number is a power of 2.
Namespace: GemstoneAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.143 -- Release Build+524337d392fd5616b12b50022b004322b9e7c330
public static bool IsPowerOfTwo(
long value
)
Public Shared Function IsPowerOfTwo (
value As Long
) As Boolean
Gemstone.BitMath.IsPowerOfTwo = function(value);
- value Int64
- The value to check power of two properties.
Booleantrue if
value is a power of 2; otherwise,
false.