I am using below select statement to convert a positive number to hexadecimal
SQL>select to_char('2122699925', 'XXXXXXXXXXXXXXXX') from testable
Output : 7E85D495
But the TO_CHAR for negative number it is giving me output as #################
SQL>select to_char('-2122699925', 'XXXXXXXXXXXXXXXX') from testable
Output : #################
The required output should be 817A2B6B. Any thoughts?