Guys i have following sql query , that does some mathematical calculation and outputs like this 1.40672427843473E18 , i need to reverse engineering to get the date back.
SELECT (TO_DATE('01112010','DD-MON-YY'))*POWER(2,44)+POWER(2,60) FROM DUAL
to get the original date back i did this
SELECT (1.40672427843473E18/POWER(2,44))-POWER(2,60) FROM DUAL
// is this right way to reconstruct
// original date.
but i get a negative value.kindly advise on this.
You have implemented incorrect reverse function. It should be: