语言

Int16.IsPow2(Int16) 方法

定义

确定值是否为 2 的幂。

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

参数

value
Int16

要检查的值。

返回

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

实现

适用于