Int64.IBinaryInteger<Int64>.GetShortestBitLength Method

Definition

Gets the length, in bits, of the shortest two's complement representation of the current value.

C#
int IBinaryInteger<long>.GetShortestBitLength();

Returns

The length, in bits, of the shortest two's complement representation of the current value.

Implements

Applies to

Product Versions
.NET 7, 8, 9