MySQL tutorial: PI [EN]
top of page
CerebroSQL

MySQL: 

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.

Example

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

bottom of page