dec2hex

Purpose:

Convert a decimal to a hexadecimal equivalent. 

Enter:

dec2hex decimal

Where:

decimal Specify the decimal to convert to its hexadecimal equivalent.

Example:

dec2hex 1027
Convert to hex equivalent using minimum number of digits.

dec2hex 255 z
Convert to 4-digit hex equivalent padded with zero(s) if necessary.

Notes:

 

See Also: