Open 372046933 opened 1 year ago
This is supported in Trino.
trino> select format('%a', -0.1e0);
_col0
-----------------------
-0x1.999999999999ap-4
(1 row)
trino> select format('%a', 3.14159e0);
_col0
---------------------
0x1.921f9f01b866ep1
(1 row)
how to convert from '0x1.921f9f01b866ep1' to 3.14159e0?
I want to cast float number to hexadecimal representation in string. Googled the docs but found no solution. Is it supported in Presto?