Non-decimal radices/Input: Difference between revisions
Content added Content deleted
(Scala solution added) |
No edit summary |
||
Line 665: | Line 665: | ||
9 |
9 |
||
17</pre> |
17</pre> |
||
=={{header|Nanoquery}}== |
|||
Nanoquery can convert numbers with any specified radix value from 2 to 36 using the int() function. |
|||
<lang nanoquery>println int("1234") |
|||
println int("1100", 2) |
|||
println int("abcd", 16) |
|||
println int("ghij", 22)</lang> |
|||
{{out}} |
|||
<pre>1234 |
|||
12 |
|||
43981 |
|||
179011</pre> |
|||
=={{header|Nim}}== |
=={{header|Nim}}== |