Mengembalikan nilai π (pi). Jumlah default tempat desimal yang ditampilkan adalah tujuh, namun MySQL menggunakan nilai presisi ganda penuh secara internal.
SELECT PI();
3.141593
SELECT PI()+0.000000000000000000;
3.141592653589793000
Because the return value of this function is a double-precision value, its exact representation may vary between platforms or implementations. This also applies to any expressions making use of PI(). See Section 13.1.4, “Floating-Point Types (Approximate Value) - FLOAT, DOUBLE”.
SELECT PI();
3.141593
SELECT PI()+0.000000000000000000;
3.141592653589793000