Converts a decimal number to hexadecimal.
Syntax
decimal_number: The decimal number you want to convert into hexadecimal. It must be between -2 39 and 2 39 -1 inclusive. Eg., 478.75
Remarks
When the result value not does have the specified num_of_digits , zeroes are added to the left of the result value.
Examples
|
Formula |
Result |
|
=DEC2HEX(A2) |
C |
|
=DEC2HEX(A3) |
FFFFFFFE0C |
|
=DEC2HEX(A4;12) |
0000000001DE |
Possible Errors
|
Errors |
Meaning |
|
#N/A! |
|
|
#NAME! |
|
|
#VALUE! |
|
|
#REF! |
|
|
#NUM! |
|
Similar Functions