| MATLAB Function Reference | ![]() |
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
| dec2base | dec2hex | ![]() |
© 1994-2005 The MathWorks, Inc.