Optional
high: numberOptional
unsigned: booleanThe high 32 bits as a signed value.
The low 32 bits as a signed value.
Whether unsigned or not.
Static
MAX_Maximum unsigned value.
Static
MAX_Maximum signed value.
Static
MIN_Minimum signed value.
Static
NEG_Signed negative one.
Static
ONESigned one.
Static
UONEUnsigned one.
Static
UZEROUnsigned zero.
Static
ZEROSigned zero
Returns count leading zeros of this Long.
Compares this Long's value with the specified's.
Compares this Long's value with the specified's.
Returns count leading zeros of this Long.
Returns count trailing zeros of this Long.
Returns count trailing zeros of this Long.
Tests if this Long's value equals the specified's.
Tests if this Long's value equals the specified's.
Tests if this Long's value equals zero.
Tests if this Long's value is greater than or equal the specified's.
Gets the high 32 bits as a signed integer.
Gets the high 32 bits as an unsigned integer.
Gets the low 32 bits as a signed integer.
Gets the low 32 bits as an unsigned integer.
Gets the number of bits needed to represent the absolute value of this Long.
Tests if this Long's value is greater than the specified's.
Tests if this Long's value is greater than or equal the specified's.
Tests if this Long's value is greater than the specified's.
Tests if this Long's value is greater than or equal the specified's.
Tests if this Long's value is even.
Tests if this Long's value is negative.
Tests if this Long's value is odd.
Tests if this Long's value is positive or zero.
Tests if this Long can be safely represented as a JavaScript number.
Tests if this Long's value equals zero.
Tests if this Long's value is less than or equal the specified's.
Tests if this Long's value is less than the specified's.
Tests if this Long's value is less than or equal the specified's.
Tests if this Long's value is less than the specified's.
Tests if this Long's value is less than or equal the specified's.
Tests if this Long's value differs from the specified's.
Negates this Long's value.
Negates this Long's value.
Tests if this Long's value differs from the specified's.
Returns the bitwise NOT of this Long.
Tests if this Long's value differs from the specified's.
Converts the Long to a big integer.
Converts this Long to its byte representation.
Optional
le: booleanConverts this Long to its big endian byte representation.
Converts this Long to its little endian byte representation.
Converts the Long to a 32 bit integer, assuming it is a 32 bit integer.
Converts the Long to a the nearest floating-point representation of this value (double, 53 bit mantissa).
Converts this Long to signed.
Converts the Long to a string written in the specified radix.
Optional
radix: numberConverts this Long to unsigned.
Static
fromReturns a Long representing the given big integer value.
Optional
unsigned: booleanStatic
fromReturns a Long representing the 64 bit integer that comes by concatenating the given low and high bits. Each is assumed to use 32 bits.
Optional
unsigned: booleanStatic
fromCreates a Long from its byte representation.
Optional
unsigned: booleanOptional
le: booleanStatic
fromCreates a Long from its big endian byte representation.
Optional
unsigned: booleanStatic
fromCreates a Long from its little endian byte representation.
Optional
unsigned: booleanStatic
fromReturns a Long representing the given 32 bit integer value.
Optional
unsigned: booleanStatic
fromReturns a Long representing the given value, provided that it is a finite number. Otherwise, zero is returned.
Optional
unsigned: booleanStatic
fromReturns a Long representation of the given string, written using the specified radix.
Optional
unsigned: number | booleanOptional
radix: numberStatic
fromConverts the specified value to a Long.
Optional
unsigned: booleanStatic
is
Constructs a 64 bit two's-complement integer, given its low and high 32 bit values as signed integers. See the from* functions below for more convenient ways of constructing Longs.