BigInteger.IsPow2(BigInteger) Metode

Definisi

Menentukan apakah nilai adalah kekuatan dari dua.

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

Parameter

value
BigInteger

Nilai yang akan diperiksa.

Mengembalikan

true jika value adalah kekuatan dari dua; jika tidak, false.

Penerapan

Berlaku untuk