I'm trying to cast a decimal real to double precision and it has the following behavior:
select 2.2::real::double precision;
Outputs:
2.20000004768372 (double precision)
How can I make it output the following:
2.2 (double precision)
Thank you