Anonymous user
Non-decimal radices/Convert: Difference between revisions
add Matlab/Octave non-decimal radix conversion
(add Matlab/Octave non-decimal radix conversion) |
|||
Line 825:
Output:
<pre>"1a"
26</pre>
=={{header|Matlab / Octave}}==
Use the built-in functions base2dec() and dec2base:
<lang Matlab>dec2base(26,16)
base2dec('1a', 16)</lang>
Output:
<pre>1A
26</pre>
|