pow(x, y): Returns value of x to the exponential power of y : Pow « Math Functions « PostgreSQL






pow(x, y): Returns value of x to the exponential power of y


postgres=#
postgres=# -- pow(x, y): Returns value of x to the exponential power of y
postgres=# select pow(2.0, 3) AS "two cubed";
     two cubed
--------------------
 8.0000000000000000
(1 row)

postgres=#
           
       








Related examples in the same category

1.pow(2.0, 3.0) AS 'two cubed', pow(2.0, 2.0) AS 'two squared', pow(2.0, 1.0) AS 'just two'