CAST(2 AS double precision) ^ CAST(3 AS double precision)
postgres=# SELECT CAST(2 AS double precision) ^ CAST(3 AS double precision) AS "exp"; exp ----- 8 (1 row) postgres=#