Navigation

Operators and Keywords

Function List:

C++ API

: dec2hex (d, len)

Return the hexadecimal string corresponding to the non-negative integer d.

For example:

dec2hex (2748)
     ⇒ "ABC"

If d is a matrix or cell array, return a string matrix with one row per element in d, padded with leading zeros to the width of the largest value.

The optional second argument, len, specifies the minimum number of digits in the result.

See also: hex2dec, dec2base, dec2bin.

Package: octave