Click or drag to resize

BinaryMathIsPowerOfTwoOrZero(Int64) Method

Returns if the number is a power of two or is zero.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntax
C#
public static bool IsPowerOfTwoOrZero(
	long x
)

Parameters

x  Int64
The argument to test.

Return Value

Boolean
if x is a power of two or is equal to zero; otherwise, .
Remarks
Note that 0 is considered a valid input and returns .
See Also