Click or drag to resize

BitMathIsPowerOfTwo(Int32) Method

Determines if the number is a power of 2.

Namespace: GSF
Assembly: GSF.Core (in GSF.Core.dll) Version: 2.4.244-beta+c33f622c070b2c1078a06bcb41bdeb4c19d19a0b
Syntax
public static bool IsPowerOfTwo(
	int value
)
View Source

Parameters

value  Int32
The value to check power of two properties

Return Value

Boolean
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionIf is less than zero
See Also