<< dec2bin Elementary functions exp >>

dec2hex


Convert decimal number to base 16.


Syntax


R = dec2hex(D)
R = dec2hex(D, N)

Input argument


D

a non negative integer smaller than the value returned by flintmax.

N

an integer value. number of digits.

Output argument


R

result of dec2hex: char array.

Description


dec2hex converts decimal number to base 16.

Example


Y = dec2hex(12)

See also


dec2base, hex2dec.

History


Version Description
1.0.0 initial version

Author


Allan CORNET

<< dec2bin Elementary functions exp >>