Non-decimal radices/Convert: Difference between revisions
Content added Content deleted
m (→{{header|Matlab / Octave}}: These are two languages) |
(Added zkl) |
||
Line 2,022: | Line 2,022: | ||
-559038737 |
-559038737 |
||
</pre> |
</pre> |
||
=={{header|zkl}}== |
|||
The toInt(base) and toString(base) methods do this. base is 2..36 |
|||
<lang zkl>(26).toString(16) //--> "1a" |
|||
"1a".toInt(16) //-->26</lang> |
|||
In addition, string format is able to convert to a base: |
|||
<lang zkl>"%x %,.2B".fmt(26,26) //-->"1a 1|1010"</lang> |
|||
[[Category:Radices]] |
[[Category:Radices]] |