DEC2HEX function

DEC2HEX converts a decimal number to a hexadecimal number.


DEC2HEX(number, [places])

Number is a decimal number. If Number is negative, the function returns a hexadecimal number with 10 characters (40 bits). The most significant bit is the sign bit, the other 39 bits return the value.

Places means the number of places to be output.


=DEC2HEX(100,4) returns 0064.