語言

BigInteger.IsPow2(BigInteger) 方法

定義

判斷值是否為兩個乘冪。

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

要檢查的值。

傳回

truevalue 為二的冪次方;否則,為 false

實作

適用於