In MySQL, the PI()
function returns the value of π (pi). The number π is a mathematical constant approximately equal to 3.14159 (although it can also be displayed with much greater precision than this).
The PI()
function displays π with a default precision of 7 (i.e. 3.141593), however MySQL uses the full double-precision value internally.