BigInteger.GetBitLength 方法

定义

获取最短两个实例的补全表示形式所需的位数,而无需符号位。

public:
 long GetBitLength();
public long GetBitLength();
member this.GetBitLength : unit -> int64
Public Function GetBitLength () As Long

返回

没有符号位的两个补数表示法中的最小非负位数。

注解

如果当前对象的值等于 Zero 或等于, MinusOne则此方法返回 0。 对于正整数,返回值等于普通二进制表示形式的字符串长度。

适用于