``` val a = 12 val binaryString = a.toString(radix...
# announcements
i
Copy code
val a = 12
val binaryString = a.toString(radix = 2)
    
//how to convert binaryString back to Int? Is there any build in function in stdlib?
d
binaryString.toUInt(2)
👍 1
i
thx
d
why not just toInt(2)?
d
His original question started with an
UInt
, so I assumed that what he wanted to get out again.
d
ah sneaky edits