Converts a hexadecimal number to decimal.
Sample Usage
HEX2DEC(10)
HEX2DEC(C5)
Syntax
HEX2DEC(number)
- number - The hexadecimal number to be converted.
Examples
HEX2DEC(10) returns a value of 16.
HEX2DEC(10,4) returns a value of 0016.
HEX2DEC(C5) converts the binary number contained in C5 to decimal.
Notes
- If number is negative, the value of places is ignored and HEX2DEC returns a 10-character decimal number.
- number cannot contain more than 10 characters.
- Hexadecimal digits are not case-sensitive.
- number can have a maximum value of 1FF if positive, and a minimum of FFFFFFFE00 if negative.
- If number is not a valid hexadecimal number, HEX2DEC returns the #NUM! error value.
- If places is not an integer, it is truncated.
- If places is non-numeric, HEX2DEC returns the #VALUE! error value.
- If places is negative, HEX2DEC returns the #NUM! error value.
- If the number of digits required is greater than the specified places, the #NUM! error is returned.