You are viewing an older version of this section. View current production version.
Join the MemSQL Community Today
Get expert advice, develop skills, and connect with others.

PI

Returns the value of pi to 7 decimal places. The full double precision value is used internally if PI() is used as part of an expression.

Syntax

PI()

Return Type

Double.

Examples

memsql> select PI();
+----------+
| PI()     |
+----------+
| 3.141593 |
+----------+