NUMBER to HEX, HEX to NUMBER [message #651083] |
Tue, 10 May 2016 22:44 |
madhuridara
Messages: 3 Registered: October 2009
|
Junior Member |
|
|
I am trying to convert a number using these functions:
select TO_CHAR(164489235,'XXXXXXXXX') HEX11, RAWTOHEX(UTL_RAW.CAST_TO_RAW(164489235))) HEX1 from dual;
return
HEX11 HEX1
9CDE813 313634343839323335
I am unable to understand why HEX11 and HEX1 return different values.
Could anyone please help me understand the difference between these functions?
When I use the online converters like (https://www.easycalculation.com/hex-converter.php)
to convert back the HEX to decimal value, HEX11 returns the 164489235 back but not HEX1.
Any help is greatly appreciated.
TY!
|
|
|
|
|