Jump to content

Binary digits: Difference between revisions

decimal to binary conversion in Matlab and Octave
(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}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.