BigInteger.GetBitLength 方法
定义
获取当前实例的最短两个补码表示形式(不带符号位)所需的位数。Gets the number of bits required for shortest two's complement representation of the current instance without the sign bit.
public:
long GetBitLength();
public long GetBitLength ();
member this.GetBitLength : unit -> int64
Public Function GetBitLength () As Long
返回
不带符号位的两个补码表示法中的最小非负位数。The minimum non-negative number of bits in two's complement notation without the sign bit.
注解
如果当前对象的值等于或,则此方法返回 0 Zero MinusOne 。This method returns 0 if the value of current object is equal to Zero or MinusOne. 对于正整数,返回值等于普通二进制表示形式的字符串长度。For positive integers the return value is equal to the ordinary binary representation string length.