Int
Represents a 32-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type int.
Since Kotlin
1.2Represents a 32-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type int.
Since Kotlin
1.0Represents a 32-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type int.
Since Kotlin
1.1Types
Functions
Performs a bitwise AND operation between the two values.
Performs a bitwise AND operation between the two values.
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.
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.
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.
Adds the other value to this value.
Adds the other value to this 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).
Multiplies this value by the other value.
Multiplies this value by the other value.
Performs a bitwise XOR operation between the two values.
Performs a bitwise XOR operation between the two values.
Extensions
Returns the absolute value of this value.
Returns the absolute value of this value.
Returns the absolute value of this value.
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 minimumValue..maximumValue.
Ensures that this value lies in the specified range.
Returns a progression from this value down to the specified to value with the step -1.
Returns the sign of this value:
Returns the sign of this value:
Returns the value of this Int number as a BigDecimal.
Returns the value of this Int number as a BigInteger.
Returns a range from this value up to but excluding the specified to value.