PI()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Returns an approximate value of pi.
USAGE
PI()
DETAILS
PI()
is a mathematical function that returns the approximate value of pi
.
The value is accurate to 12 decimal places.
EXAMPLES
SELECT FORMAT(PI(), 20);
+------------------------+
| FORMAT(PI(), 20) |
+------------------------+
| 3.14159265358980000000 |
+------------------------+