Non-decimal radices/Convert: Difference between revisions

Content added Content deleted
(Added Wren)
Line 3,052: Line 3,052:
input box: (99 base 12)+(77 base 8)<br>
input box: (99 base 12)+(77 base 8)<br>
This is Mathematica but is worth showing distinctly. Result provides endian choice and other bases typically.
This is Mathematica but is worth showing distinctly. Result provides endian choice and other bases typically.

=={{header|Wren}}==
{{libheader|fmt}}
The methods Conv.itoa and Conv.atoi in the above module provide the required functionality.
<lang ecmascript>import "/fmt" for Conv

System.print(Conv.itoa(26, 16))
System.print(Conv.atoi("1a", 16))</lang>

{{out}}
<pre>
1a
26
</pre>



=={{header|XPL0}}==
=={{header|XPL0}}==