toString

Common
JVM
JS
Native
1.1
fun Byte.toString(radix: Int): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.1
fun Short.toString(radix: Int): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.1
fun Int.toString(radix: Int): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.1
fun Long.toString(radix: Int): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.3
@ExperimentalUnsignedTypes fun UByte.toString(
    radix: Int
): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.3
@ExperimentalUnsignedTypes fun UShort.toString(
    radix: Int
): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.3
@ExperimentalUnsignedTypes fun UInt.toString(
    radix: Int
): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.

Common
JVM
JS
Native
1.3
@ExperimentalUnsignedTypes fun ULong.toString(
    radix: Int
): String

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

Exceptions

IllegalArgumentException - when radix is not a valid radix for number to string conversion.