語言

UInt128.IsPow2(UInt128) 方法

定義

判斷值是否為兩個乘冪。

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

參數

value
UInt128

要檢查的值。

傳回

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

實作

適用於