top of page

110

MySQL 8.0

PI

Syntax:
PI()

Returns the value of ? (pi). The default number of decimal places
displayed is seven, but MySQL uses the full double-precision value
internally.

mysql> SELECT PI();
-> 3.141593
mysql> SELECT PI()+0.000000000000000000;
-> 3.141592653589793116

bottom of page