UInt16.IsPow2(UInt16) 方法

定义

确定值是否为 2 的幂。

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

参数

value
UInt16

要检查的值。

返回

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

实现

适用于