This function converts a decimal value into a hexadecimal number and returns the result.
Returns a string containing the hexadecimal number.