BigInteger.IsPow2(BigInteger) 方法

定義

判斷值是否為 2 的乘冪。

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

參數

value
BigInteger

要檢查的值。

傳回

true 如果 value 是兩個的乘冪,則為 ,否則為 false

實作

適用於