MATLAB Function Reference | ![]() ![]() |
Decimal to binary number conversion
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 | ![]() |