UInt64.IsPow2(UInt64) 方法

定义

确定值是否为 2 的幂。

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

参数

value
UInt64

要检查的值。

返回

true 如果 value 为 2 的幂,则为 2;否则为 false

实现

适用于