語言

IntPtr.IsPow2(IntPtr) 方法

定義

判斷值是否為兩個乘冪。

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

參數

value
IntPtr

nativeint

要檢查的值。

傳回

true 若 value 為二的冪次方;否則,為 false。

實作

適用於