Non-decimal radices/Convert: Difference between revisions

no edit summary
(Added Kotlin)
No edit summary
Line 1,780:
255
10
 
=={{header|Julia}}==
<lang julia>
# 26 in base 16 or 2
base(16, 26)
base(2, 26)
 
# Parse to integer
parse(Int, "1a", 16)
parse(Int, "101101", 2)
</lang>
 
{{out}}
<pre>
"1a"
"11010"
26
45
</pre>
 
=={{header|Kotlin}}==
Anonymous user