HEX2DEC (hexadecimal number to decimal number)

<< Click to Display Table of Contents >>

HEX2DEC (hexadecimal number to decimal number)

Syntax:

HEX2DEC(Number)

Description:

Converts the given hexadecimal number (base 16) to a decimal number (base 10).

Number is the number to be converted.

Negative numbers have to be transformed to two's complement notation (see last example).

The permissible value range for Number is (in hexadecimal notation):

80000000 ≤ Number ≤ 7FFFFFFF

This corresponds in decimal notation:

-2,147,483,648 ≤ Number ≤ 2,147,483,647

Example:

HEX2DEC("2A") returns 42

HEX2DEC("FFFFFFD6") returns -42

See also:

DEC2HEX, HEX2BIN, HEX2OCT, DECIMAL