long

These represent numbers in an unlimited range, subject to available (virtual) memory only. For the purpose of shift and mask operations, a binary representation is assumed, and negative numbers are represented in a variant of 2’s complement which gives the illusion of an infinite string of sign bits extending to the left.

Constructors

long()
Returns an expression converted into a long integer number.
literal syntax
Initializes a new instance of the long type.

Base Designators

0… (Base Designators)
Returns a decimal integer converted from the specified base.

Methods

bit_length
Returns the number of bits necessary to represent an integer in binary, excluding the sign and leading zeros.