MATLAB Function Reference Previous page   Next Page
dec2bin

Convert decimal to binary number in string

Syntax

Description

str = dec2bin(d) returns the binary representation of d as a string. d must be a nonnegative integer smaller than 2^52.

str = dec2bin(d,n) produces a binary representation with at least n bits.

Examples

See Also

bin2dec, dec2hex


Previous page  dec2base dec2hex Next page

© 1994-2005 The MathWorks, Inc.