Click or drag to resize

BinaryMathIsNonzeroPowerOfTwo(UInt64) Method

Return true if x > 0 and x is a power of two.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static bool IsNonzeroPowerOfTwo(
	ulong x
)

Parameters

x  UInt64
The argument to test.

Return Value

Boolean
True if x > 0 and x is a power of two.
See Also