hex2dec

Purpose:

Convert a hexadecimal to its decimal equivalent.

Enter:

hex2dec <hex_string>

Where:

hex_string Specify the hexadecimal value to convert.

Example:

hex2dec 0xaa

Notes:

The program requires exactly one argument. Otherwise, it displays an error message and exits.

See Also: