Non-decimal radices/Convert: Difference between revisions
Content added Content deleted
(add Matlab/Octave non-decimal radix conversion) |
|||
Line 825: | Line 825: | ||
Output: |
Output: |
||
<pre>"1a" |
<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> |
26</pre> |