Binary digits: Difference between revisions

Content added Content deleted
(decimal to binary conversion in Matlab and Octave)
Line 482:
 
<lang Mathematica>StringJoin @@ ToString /@ IntegerDigits[50, 2] </lang>
 
=={{header|MATLAB}} / {{header|Octave}}==
 
<lang Matlab> dec2bin(5)
dec2bin(50)
dec2bin(9000) </lang>
 
The output is a string containing ascii(48) (i.e. '0') and ascii(49) (i.e. '1').
 
=={{header|Modula-3}}==