I have a table in database with fractional value- value 14.65 45 7458.34 34.69 4.7 34
I want to convert this fractional value to hexadecimal.
But to_hex function only converts decimal value(14) and not (14.65).
Tried with to_char also- SELECT TO_CHAR(15.33, 'X') FROM DUAL; --->output: F
I don't want to ceil or floor the value and print Hexadecimal number. I want 15.33 --->F.547AE147
Split the values into the integer and the decimal parts and use
TO_CHARon them separately:Which outputs:
db<>fiddle here