A Nonnegative Decimal Number to the Binary Number Transformation
INDEX
INPUT: octave: >
dec2bin
(
)
OCTAVE :: GCD - Greatest Common Divisor
Function:
dec2bin
( N )
Return the binary number corresponding the decimal number N,
as a string of ones and zeros.
Example
octave:1> bin2dec( 14 ) ans = 1110 octave:2> bin2dec( 12345678 ) ans = 101111000110000101001110
OCTAVE
::
DEC2BIN