1904, 2019 The PI Function Kornilios Ampatzis/ April 19, 2019/ Functions It returns the number 3.14159265358979, the mathematical constant pi, accurate to 15 digits.