Jump to content

Non-decimal radices/Convert: Difference between revisions

Added zkl
m (→‎{{header|Matlab / Octave}}: These are two languages)
(Added zkl)
Line 2,022:
-559038737
</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]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.