gaetan
04/17/2017, 8:54 AMString.toInt(radix:Int)
but didn’t find the opposite.konsoletyper
04/17/2017, 8:57 AMfun Int.toString(radix: Int) = asDynamic().toString(radix)
println((255).toString(16))
bamdmux
04/17/2017, 1:00 PM(-12).toString(16)
will return -c
not FF...F4
konsoletyper
04/17/2017, 1:01 PM(-12 and 0xFF).toString(16)
. Note that Kotlin JVM has the same behaviourbamdmux
04/17/2017, 2:20 PM(-12).and(0xFFFFFFFF).toString(16)
will return -c
byte.toInt().and(0xFF).toString(16)
gaetan
04/17/2017, 2:27 PM