pi()

A function returning the value of pi

pi() is a system function returning the approximate value of pi (π).

pi() was added in PostgreSQL 7.0.

Usage

pi ( ) → double precision

 

Change history

Examples

Usage example for :

postgres=# SELECT pi();
        pi        
------------------
 3.14159265358979
(1 row)
  • Pi - Wikipedia article

Categories

System function