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.

Represents a 32-bit signed integer. On the JVM, non-nullable values of this type are represented as values of the primitive type int.

Represents a 32-bit signed integer.

Types

Link copied to clipboard
object Companion
object Companion
object Companion

Functions

Link copied to clipboard
infix fun and(other: Int): Int

Performs a bitwise AND operation between the two values.

infix fun and(other: Int): Int

Performs a bitwise AND operation between the two values.

infix external fun and(other: Int): Int

Performs a bitwise AND operation between the two values.

Link copied to clipboard
operator fun compareTo(other: Byte): Int
operator fun compareTo(other: Double): Int
operator fun compareTo(other: Float): Int
open operator override fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
operator fun compareTo(other: Short): Int

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.

operator fun compareTo(other: Byte): Int
operator fun compareTo(other: Double): Int
operator fun compareTo(other: Float): Int
open operator override fun compareTo(other: Int): Int
operator fun compareTo(other: Long): Int
operator fun compareTo(other: Short): Int

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.

inline operator fun compareTo(other: Byte): Int
inline operator fun compareTo(other: Double): Int
inline operator fun compareTo(other: Float): Int
open operator external override fun compareTo(other: Int): Int
inline operator fun compareTo(other: Long): Int
inline operator fun compareTo(other: Short): Int

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.

Link copied to clipboard
operator fun dec(): Int

Decrements this value.

operator fun dec(): Int

Decrements this value.

operator external fun dec(): Int

Decrements this value.

Link copied to clipboard
operator fun div(other: Byte): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long
operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

operator fun div(other: Double): Double
operator fun div(other: Float): Float

Divides this value by the other value.

operator fun div(other: Byte): Int
operator fun div(other: Int): Int
operator fun div(other: Long): Long
operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

operator fun div(other: Double): Double
operator fun div(other: Float): Float

Divides this value by the other value.

inline operator fun div(other: Byte): Int
operator external fun div(other: Int): Int
inline operator fun div(other: Long): Long
inline operator fun div(other: Short): Int

Divides this value by the other value, truncating the result to an integer that is closer to zero.

inline operator fun div(other: Double): Double
inline operator fun div(other: Float): Float

Divides this value by the other value.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
fun equals(other: Int): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
operator fun inc(): Int

Increments this value.

operator fun inc(): Int

Increments this value.

operator external fun inc(): Int

Increments this value.

Link copied to clipboard
fun inv(): Int

Inverts the bits in this value.

fun inv(): Int

Inverts the bits in this value.

external fun inv(): Int

Inverts the bits in this value.

Link copied to clipboard
operator fun minus(other: Byte): Int
operator fun minus(other: Double): Double
operator fun minus(other: Float): Float
operator fun minus(other: Int): Int
operator fun minus(other: Long): Long
operator fun minus(other: Short): Int

Subtracts the other value from this value.

operator fun minus(other: Byte): Int
operator fun minus(other: Double): Double
operator fun minus(other: Float): Float
operator fun minus(other: Int): Int
operator fun minus(other: Long): Long
operator fun minus(other: Short): Int

Subtracts the other value from this value.

inline operator fun minus(other: Byte): Int
inline operator fun minus(other: Double): Double
inline operator fun minus(other: Float): Float
operator external fun minus(other: Int): Int
inline operator fun minus(other: Long): Long
inline operator fun minus(other: Short): Int

Subtracts the other value from this value.

Link copied to clipboard
infix fun or(other: Int): Int

Performs a bitwise OR operation between the two values.

infix fun or(other: Int): Int

Performs a bitwise OR operation between the two values.

infix external fun or(other: Int): Int

Performs a bitwise OR operation between the two values.

Link copied to clipboard
operator fun plus(other: Byte): Int
operator fun plus(other: Double): Double
operator fun plus(other: Float): Float
operator fun plus(other: Int): Int
operator fun plus(other: Long): Long
operator fun plus(other: Short): Int

Adds the other value to this value.

operator fun plus(other: Byte): Int
operator fun plus(other: Double): Double
operator fun plus(other: Float): Float
operator fun plus(other: Int): Int
operator fun plus(other: Long): Long
operator fun plus(other: Short): Int

Adds the other value to this value.

inline operator fun plus(other: Byte): Int
inline operator fun plus(other: Double): Double
inline operator fun plus(other: Float): Float
operator external fun plus(other: Int): Int
inline operator fun plus(other: Long): Long
inline operator fun plus(other: Short): Int

Adds the other value to this value.

Link copied to clipboard
operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

operator fun rangeTo(other: Byte): IntRange
operator fun rangeTo(other: Int): IntRange
operator fun rangeTo(other: Long): LongRange
operator fun rangeTo(other: Short): IntRange

Creates a range from this value to the specified other value.

Link copied to clipboard
operator fun rem(other: Byte): Int
operator fun rem(other: Double): Double
operator fun rem(other: Float): Float
operator fun rem(other: Int): Int
operator fun rem(other: Long): Long
operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value by the other value.

Since Kotlin 1.1
operator fun rem(other: Byte): Int
operator fun rem(other: Double): Double
operator fun rem(other: Float): Float
operator fun rem(other: Int): Int
operator fun rem(other: Long): Long
operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value by the other value.

Since Kotlin 1.1
inline operator fun rem(other: Byte): Int
inline operator fun rem(other: Double): Double
inline operator fun rem(other: Float): Float
operator external fun rem(other: Int): Int
inline operator fun rem(other: Long): Long
inline operator fun rem(other: Short): Int

Calculates the remainder of truncating division of this value by the other value.

Link copied to clipboard
infix fun shl(bitCount: Int): Int

Shifts this value left by the bitCount number of bits.

infix fun shl(bitCount: Int): Int

Shifts this value left by the bitCount number of bits.

infix external fun shl(bitCount: Int): Int

Shifts this value left by the bitCount number of bits.

Link copied to clipboard
infix fun shr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.

infix fun shr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.

infix external fun shr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with copies of the sign bit.

Link copied to clipboard
operator fun times(other: Byte): Int
operator fun times(other: Double): Double
operator fun times(other: Float): Float
operator fun times(other: Int): Int
operator fun times(other: Long): Long
operator fun times(other: Short): Int

Multiplies this value by the other value.

operator fun times(other: Byte): Int
operator fun times(other: Double): Double
operator fun times(other: Float): Float
operator fun times(other: Int): Int
operator fun times(other: Long): Long
operator fun times(other: Short): Int

Multiplies this value by the other value.

inline operator fun times(other: Byte): Int
inline operator fun times(other: Double): Double
inline operator fun times(other: Float): Float
operator external fun times(other: Int): Int
inline operator fun times(other: Long): Long
inline operator fun times(other: Short): Int

Multiplies this value by the other value.

Link copied to clipboard
open override fun toByte(): Byte

Converts this Int value to Byte.

open override fun toByte(): Byte

Converts this Int value to Byte.

open external override fun toByte(): Byte

Converts this Int value to Byte.

Link copied to clipboard
open override fun toChar(): Char

Converts this Int value to Char.

open override fun toChar(): Char

Converts this Int value to Char.

open external override fun toChar(): Char

Converts this Int value to Char.

Link copied to clipboard
open override fun toDouble(): Double

Converts this Int value to Double.

open override fun toDouble(): Double

Converts this Int value to Double.

open external override fun toDouble(): Double

Converts this Int value to Double.

Link copied to clipboard
open override fun toFloat(): Float

Converts this Int value to Float.

open override fun toFloat(): Float

Converts this Int value to Float.

open external override fun toFloat(): Float

Converts this Int value to Float.

Link copied to clipboard
open override fun toInt(): Int

Returns this value.

open override fun toInt(): Int

Returns this value.

open inline override fun toInt(): Int

Returns this value.

Link copied to clipboard
open override fun toLong(): Long

Converts this Int value to Long.

open override fun toLong(): Long

Converts this Int value to Long.

open external override fun toLong(): Long

Converts this Int value to Long.

Link copied to clipboard
open override fun toShort(): Short

Converts this Int value to Short.

open override fun toShort(): Short

Converts this Int value to Short.

open external override fun toShort(): Short

Converts this Int value to Short.

Link copied to clipboard
open external override fun toString(): String
Link copied to clipboard
operator fun unaryMinus(): Int

Returns the negative of this value.

operator fun unaryMinus(): Int

Returns the negative of this value.

operator external fun unaryMinus(): Int

Returns the negative of this value.

Link copied to clipboard
operator fun unaryPlus(): Int

Returns this value.

operator fun unaryPlus(): Int

Returns this value.

operator external fun unaryPlus(): Int

Returns this value.

Link copied to clipboard
infix fun ushr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.

infix fun ushr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.

infix external fun ushr(bitCount: Int): Int

Shifts this value right by the bitCount number of bits, filling the leftmost bits with zeros.

Link copied to clipboard
infix fun xor(other: Int): Int

Performs a bitwise XOR operation between the two values.

infix fun xor(other: Int): Int

Performs a bitwise XOR operation between the two values.

infix external fun xor(other: Int): Int

Performs a bitwise XOR operation between the two values.

Extensions

Link copied to clipboard
expect val Int.absoluteValue: Int
expect val Int.absoluteValue: Int
expect val Int.absoluteValue: Int

Returns the absolute value of this value.

actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int

Returns the absolute value of this value.

actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int

Returns the absolute value of this value.

actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int
actual val Int.absoluteValue: Int

Returns the absolute value of this value.

Link copied to clipboard
fun Int.coerceAtLeast(minimumValue: Int): Int
fun Int.coerceAtLeast(minimumValue: Int): Int
fun Int.coerceAtLeast(minimumValue: Int): Int

Ensures that this value is not less than the specified minimumValue.

Link copied to clipboard
fun Int.coerceAtMost(maximumValue: Int): Int
fun Int.coerceAtMost(maximumValue: Int): Int
fun Int.coerceAtMost(maximumValue: Int): Int

Ensures that this value is not greater than the specified maximumValue.

Link copied to clipboard
fun Int.coerceIn(minimumValue: Int, maximumValue: Int): Int
fun Int.coerceIn(minimumValue: Int, maximumValue: Int): Int
fun Int.coerceIn(minimumValue: Int, maximumValue: Int): Int

Ensures that this value lies in the specified range minimumValue..maximumValue.

Ensures that this value lies in the specified range.

Link copied to clipboard
inline external fun <R : Any> Int.convert(): R
inline external fun <R : Any> Int.convert(): R
inline external fun <R : Any> Int.convert(): R
Link copied to clipboard

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

actual inline fun Int.countLeadingZeroBits(): Int
actual inline fun Int.countLeadingZeroBits(): Int
actual inline fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

actual inline fun Int.countLeadingZeroBits(): Int
actual inline fun Int.countLeadingZeroBits(): Int
actual inline fun Int.countLeadingZeroBits(): Int

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Counts the number of consecutive most significant bits that are zero in the binary representation of this Int number.

Link copied to clipboard
expect fun Int.countOneBits(): Int
expect fun Int.countOneBits(): Int
expect fun Int.countOneBits(): Int

Counts the number of set bits in the binary representation of this Int number.

actual inline fun Int.countOneBits(): Int
actual inline fun Int.countOneBits(): Int
actual inline fun Int.countOneBits(): Int

Counts the number of set bits in the binary representation of this Int number.

actual fun Int.countOneBits(): Int
actual fun Int.countOneBits(): Int
actual fun Int.countOneBits(): Int

Counts the number of set bits in the binary representation of this Int number.

actual external fun Int.countOneBits(): Int
actual external fun Int.countOneBits(): Int
actual external fun Int.countOneBits(): Int

Counts the number of set bits in the binary representation of this Int number.

Link copied to clipboard

Counts the number of consecutive least significant bits that are zero in the binary representation of this Int number.

actual inline fun Int.countTrailingZeroBits(): Int
actual inline fun Int.countTrailingZeroBits(): Int
actual inline fun Int.countTrailingZeroBits(): Int

Counts the number of consecutive least significant bits that are zero in the binary representation of this Int number.

Counts the number of consecutive least significant bits that are zero in the binary representation of this Int number.

Counts the number of consecutive least significant bits that are zero in the binary representation of this Int number.

Link copied to clipboard
Link copied to clipboard

Returns the Char that represents this decimal digit. Throws an exception if this value is not in the range 0..9.

fun Int.digitToChar(radix: Int): Char
fun Int.digitToChar(radix: Int): Char
fun Int.digitToChar(radix: Int): Char

Returns the Char that represents this numeric digit value in the specified radix. Throws an exception if the radix is not in the range 2..36 or if this value is not in the range 0 until radix.

Link copied to clipboard
infix fun Int.downTo(to: Byte): IntProgression
infix fun Int.downTo(to: Int): IntProgression
infix fun Int.downTo(to: Long): LongProgression
infix fun Int.downTo(to: Short): IntProgression
infix fun Int.downTo(to: Byte): IntProgression
infix fun Int.downTo(to: Int): IntProgression
infix fun Int.downTo(to: Long): LongProgression
infix fun Int.downTo(to: Short): IntProgression
infix fun Int.downTo(to: Byte): IntProgression
infix fun Int.downTo(to: Int): IntProgression
infix fun Int.downTo(to: Long): LongProgression
infix fun Int.downTo(to: Short): IntProgression

Returns a progression from this value down to the specified to value with the step -1.

Link copied to clipboard
inline fun Int.floorDiv(other: Byte): Int
inline fun Int.floorDiv(other: Short): Int
inline fun Int.floorDiv(other: Int): Int
inline fun Int.floorDiv(other: Long): Long
inline fun Int.floorDiv(other: Byte): Int
inline fun Int.floorDiv(other: Short): Int
inline fun Int.floorDiv(other: Int): Int
inline fun Int.floorDiv(other: Long): Long
inline fun Int.floorDiv(other: Byte): Int
inline fun Int.floorDiv(other: Short): Int
inline fun Int.floorDiv(other: Int): Int
inline fun Int.floorDiv(other: Long): Long

Divides this value by the other value, flooring the result to an integer that is closer to negative infinity.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
inline fun Int.mod(other: Byte): Byte
inline fun Int.mod(other: Short): Short
inline fun Int.mod(other: Int): Int
inline fun Int.mod(other: Long): Long
inline fun Int.mod(other: Byte): Byte
inline fun Int.mod(other: Short): Short
inline fun Int.mod(other: Int): Int
inline fun Int.mod(other: Long): Long
inline fun Int.mod(other: Byte): Byte
inline fun Int.mod(other: Short): Short
inline fun Int.mod(other: Int): Int
inline fun Int.mod(other: Long): Long

Calculates the remainder of flooring division of this value by the other value.

Link copied to clipboard
Link copied to clipboard
inline external fun <R : Number> Number.narrow(): R
inline external fun <R : Number> Number.narrow(): R
inline external fun <R : Number> Number.narrow(): R
Link copied to clipboard
expect fun Int.rotateLeft(bitCount: Int): Int
expect fun Int.rotateLeft(bitCount: Int): Int
expect fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual inline fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual inline fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual inline fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateLeft(bitCount: Int): Int

Rotates the binary representation of this Int 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.

Link copied to clipboard

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual inline fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual inline fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual inline fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.

@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int
@ExperimentalStdlibApi
actual fun Int.rotateRight(bitCount: Int): Int

Rotates the binary representation of this Int 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.

Link copied to clipboard
Link copied to clipboard
expect val Int.sign: Int
expect val Int.sign: Int
expect val Int.sign: Int

Returns the sign of this value:

actual val Int.sign: Int
actual val Int.sign: Int
actual val Int.sign: Int

Returns the sign of this value:

actual val Int.sign: Int
actual val Int.sign: Int
actual val Int.sign: Int

Returns the sign of this value:

actual val Int.sign: Int
actual val Int.sign: Int
actual val Int.sign: Int

Returns the sign of this value:

Link copied to clipboard
inline external fun <R : Number> Number.signExtend(): R
inline external fun <R : Number> Number.signExtend(): R
inline external fun <R : Number> Number.signExtend(): R
Link copied to clipboard
expect fun Int.takeHighestOneBit(): Int
expect fun Int.takeHighestOneBit(): Int
expect fun Int.takeHighestOneBit(): Int

Returns a number having a single bit set in the position of the most significant set bit of this Int number, or zero, if this number is zero.

actual inline fun Int.takeHighestOneBit(): Int
actual inline fun Int.takeHighestOneBit(): Int
actual inline fun Int.takeHighestOneBit(): Int

Returns a number having a single bit set in the position of the most significant set bit of this Int number, or zero, if this number is zero.

actual fun Int.takeHighestOneBit(): Int
actual fun Int.takeHighestOneBit(): Int
actual fun Int.takeHighestOneBit(): Int

Returns a number having a single bit set in the position of the most significant set bit of this Int number, or zero, if this number is zero.

actual fun Int.takeHighestOneBit(): Int
actual fun Int.takeHighestOneBit(): Int
actual fun Int.takeHighestOneBit(): Int

Returns a number having a single bit set in the position of the most significant set bit of this Int number, or zero, if this number is zero.

Link copied to clipboard
expect fun Int.takeLowestOneBit(): Int
expect fun Int.takeLowestOneBit(): Int
expect fun Int.takeLowestOneBit(): Int

Returns a number having a single bit set in the position of the least significant set bit of this Int number, or zero, if this number is zero.

actual inline fun Int.takeLowestOneBit(): Int
actual inline fun Int.takeLowestOneBit(): Int
actual inline fun Int.takeLowestOneBit(): Int

Returns a number having a single bit set in the position of the least significant set bit of this Int number, or zero, if this number is zero.

actual fun Int.takeLowestOneBit(): Int
actual fun Int.takeLowestOneBit(): Int
actual fun Int.takeLowestOneBit(): Int

Returns a number having a single bit set in the position of the least significant set bit of this Int number, or zero, if this number is zero.

actual fun Int.takeLowestOneBit(): Int
actual fun Int.takeLowestOneBit(): Int
actual fun Int.takeLowestOneBit(): Int

Returns a number having a single bit set in the position of the least significant set bit of this Int number, or zero, if this number is zero.

Link copied to clipboard
inline operator fun Int.times(duration: Duration): Duration
inline operator fun Int.times(duration: Duration): Duration
inline operator fun Int.times(duration: Duration): Duration

Returns a duration whose value is the specified duration value multiplied by this number.

Link copied to clipboard
inline fun Int.toBigDecimal(mathContext: MathContext): BigDecimal
inline fun Int.toBigDecimal(mathContext: MathContext): BigDecimal
inline fun Int.toBigDecimal(mathContext: MathContext): BigDecimal

Returns the value of this Int number as a BigDecimal.

Link copied to clipboard

Returns the value of this Int number as a BigInteger.

Link copied to clipboard
Link copied to clipboard
expect fun Int.toString(radix: Int): String
expect fun Int.toString(radix: Int): String
expect fun Int.toString(radix: Int): String

Returns a string representation of this Int value in the specified radix.

actual inline fun Int.toString(radix: Int): String
actual inline fun Int.toString(radix: Int): String
actual inline fun Int.toString(radix: Int): String

Returns a string representation of this Int value in the specified radix.

actual fun Int.toString(radix: Int): String
actual fun Int.toString(radix: Int): String
actual fun Int.toString(radix: Int): String

Returns a string representation of this Int value in the specified radix.

actual inline fun Int.toString(radix: Int): String
actual inline fun Int.toString(radix: Int): String
actual inline fun Int.toString(radix: Int): String

Returns a string representation of this Int value in the specified radix.

Link copied to clipboard
inline fun Int.toUByte(): UByte
inline fun Int.toUByte(): UByte
inline fun Int.toUByte(): UByte

Converts this Int value to UByte.

Link copied to clipboard
inline fun Int.toUInt(): UInt
inline fun Int.toUInt(): UInt
inline fun Int.toUInt(): UInt

Converts this Int value to UInt.

Link copied to clipboard
inline fun Int.toULong(): ULong
inline fun Int.toULong(): ULong
inline fun Int.toULong(): ULong

Converts this Int value to ULong.

Link copied to clipboard
inline fun Int.toUShort(): UShort
inline fun Int.toUShort(): UShort
inline fun Int.toUShort(): UShort

Converts this Int value to UShort.

Link copied to clipboard
infix fun Int.until(to: Byte): IntRange
infix fun Int.until(to: Int): IntRange
infix fun Int.until(to: Long): LongRange
infix fun Int.until(to: Short): IntRange
infix fun Int.until(to: Byte): IntRange
infix fun Int.until(to: Int): IntRange
infix fun Int.until(to: Long): LongRange
infix fun Int.until(to: Short): IntRange
infix fun Int.until(to: Byte): IntRange
infix fun Int.until(to: Int): IntRange
infix fun Int.until(to: Long): LongRange
infix fun Int.until(to: Short): IntRange

Returns a range from this value up to but excluding the specified to value.