I'm starting to work in Kotlin, and I need to parse the hexadecimal string to the end, which in java can be done with
Long.parseLong("ED05265A", 16);
I canβt find anything in Kotlin, although I can find
val i = "2".toLong()
This is not what I'm looking for!
before writing anything from scratch, is there a built-in function for this?
source
share