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