BitMathIsPowerOfTwo(Int32) Method
Determines if the number is a power of 2.
Namespace: GemstoneAssembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.136 -- Release Build+d454dafd53fcce88fce9c0a8ec8597176c30b791
public static bool IsPowerOfTwo(
int value
)
public:
static bool IsPowerOfTwo(
int value
)
Gemstone.BitMath.IsPowerOfTwo = function(value);
- value Int32
- The value to check power of two properties.
Booleantrue if
value is a power of 2; otherwise,
false.