UInt32.IsPow2(UInt32) 方法

定義

判斷值是否為 2 的乘冪。

public:
 static bool IsPow2(System::UInt32 value) = System::Numerics::IBinaryNumber<System::UInt32>::IsPow2;
public static bool IsPow2 (uint value);
static member IsPow2 : uint32 -> bool
Public Shared Function IsPow2 (value As UInteger) As Boolean

參數

value
UInt32

要檢查的值。

傳回

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

實作

適用於