ReferenceSQL FunctionsMathpiVersion: Latest-4.1On this pageCopy as MarkdownView as Markdown/docs/sql-reference/sql-functions/math-functions/pi.mdOpen in ClaudeOpen in ChatGPTBrowse all docs as Markdown/llms.txtpi Returns the value of Pi. Syntaxβ pi() Parameterβ N/A Return valueβ Returns the value of Pi as a DOUBLE type value. Examplesβ mysql> select pi();+-------------------+| pi() |+-------------------+| 3.141592653589793 |+-------------------+1 row in set (0.00 sec)