Int16.IsPow2(Int16) Methode

Definition

Bestimmt, ob ein Wert eine Potenz von zwei ist.

public:
 static bool IsPow2(short value) = System::Numerics::IBinaryNumber<short>::IsPow2;
public static bool IsPow2(short value);
static member IsPow2 : int16 -> bool
Public Shared Function IsPow2 (value As Short) As Boolean

Parameter

value
Int16

Der zu überprüfende Wert.

Gibt zurück

true wenn value es sich um eine Potenz von zwei handelt, falseandernfalls .

Implementiert

Gilt für: