MATLAB Function Reference    
dec2bin

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

bin2dec, dec2hex


  dec2base dec2hex