toUByte
Parses the string as a signed UByte number and returns the result.
fun String.toUByte(): UByte(source)
fun main() {
val numberStr = "200"
val number: UByte = numberStr.toUByte()
println(number) // 200
}
Parses the string as a signed UByte number and returns the result.
fun String.toUByte(): UByte(source)
fun main() {
val numberStr = "200"
val number: UByte = numberStr.toUByte()
println(number) // 200
}