Gets the number of bits needed to express the number as an unsigned long.

C# | Visual Basic | Visual C++ |
public static int BitsToExpress( long Number )
Public Shared Function BitsToExpress ( _ Number As Long _ ) As Integer
public: static int BitsToExpress( long long Number )

- Number (Int64)
- The number to see how many bits are needed to express it.

Number of bits needed to express the number as an
unsigned long.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if Number
is less than zero. |