Int64.IsPow2(Int64) Methode

Definitie

Bepaalt of een waarde een macht van twee is.

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

Parameters

value
Int64

De waarde die moet worden gecontroleerd.

Retouren

trueals value het een macht van twee is, anders. false

Implementeringen

Van toepassing op