Long
Represents a 64-bit signed integer.
Since Kotlin
1.0Represents a 64-bit signed integer.
Since Kotlin
1.1Represents a 64-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type long
.
Since Kotlin
1.0Represents a 64-bit signed integer.
Since Kotlin
1.3Represents a 64-bit signed integer.
Since Kotlin
1.8Represents a 64-bit signed integer.
Since Kotlin
1.8Types
Properties
Functions
Performs a bitwise AND operation between the two values.
Performs a bitwise AND operation between the two values.
Performs a bitwise AND operation between the two values.
Performs a bitwise AND operation between the two values.
Performs a bitwise AND operation between the two values.
Ensures that this value is not less than the specified minimumValue.
Ensures that this value is not greater than the specified maximumValue.
Ensures that this value lies in the specified range.
Ensures that this value lies in the specified range minimumValue..maximumValue.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Compares this value with the specified value for order. Returns zero if this value is equal to the specified other value, a negative number if it's less than other, or a positive number if it's greater than other.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive most significant bits that are zero in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of set bits in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Counts the number of consecutive least significant bits that are zero in the binary representation of this Long number.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Divides this value by the other value, truncating the result to an integer that is closer to zero.
Divides this value by the other value.
Returns a progression from this value down to the specified to value with the step -1.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Subtracts the other value from this value.
Performs a bitwise OR operation between the two values.
Performs a bitwise OR operation between the two values.
Performs a bitwise OR operation between the two values.
Performs a bitwise OR operation between the two values.
Performs a bitwise OR operation between the two values.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Adds the other value to this value.
Creates a range from this value to the specified other value.
Creates a range from this value to the specified other value.
Creates a range from this value to the specified other value.
Creates a range from this value to the specified other value.
Creates a range from this value to the specified other value.
Creates a range from this value up to but excluding the specified other value.
Creates a range from this value up to but excluding the specified other value.
Creates a range from this value up to but excluding the specified other value.
Creates a range from this value up to but excluding the specified other value.
Creates a range from this value up to but excluding the specified other value.
Creates a range from this value up to but excluding the specified other value.
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Calculates the remainder of truncating division of this value (dividend) by the other value (divisor).
Rotates the binary representation of this Long number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.
Rotates the binary representation of this Long number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.
Rotates the binary representation of this Long number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.
Rotates the binary representation of this Long number left by the specified bitCount number of bits. The most significant bits pushed out from the left side reenter the number as the least significant bits on the right side.
Rotates the binary representation of this Long number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.
Rotates the binary representation of this Long number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.
Rotates the binary representation of this Long number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.
Rotates the binary representation of this Long number right by the specified bitCount number of bits. The least significant bits pushed out from the right side reenter the number as the most significant bits on the left side.
Shifts this value left by the bitCount number of bits.
Shifts this value left by the bitCount number of bits.
Shifts this value left by the bitCount number of bits.
Shifts this value left by the bitCount number of bits.
Shifts this value left by the bitCount number of bits.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the most significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Returns a number having a single bit set in the position of the least significant set bit of this Long number, or zero, if this number is zero.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Multiplies this value by the other value.
Returns the value of this Long number as a BigDecimal.
Returns the value of this Long number as a BigInteger.
Formats this Long
value using the specified format.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.
Performs a bitwise XOR operation between the two values.
Performs a bitwise XOR operation between the two values.
Performs a bitwise XOR operation between the two values.
Performs a bitwise XOR operation between the two values.
Performs a bitwise XOR operation between the two values.