Int32.IsPow2(Int32) Methode

Definition

Bestimmt, ob ein Wert eine Leistung von zwei ist.

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

Parameter

value
Int32

Gibt zurück

Boolean

true wenn value es sich um eine Macht von zwei handelt; andernfalls false.

Implementiert

Gilt für