THE WORLD'S LARGEST WEB DEVELOPER SITE

MySQL PI() Function

❮ MySQL Functions

Example

Return the value of PI:

SELECT PI();
Try it Yourself »

Definition and Usage

The PI() function returns the value of PI displayed with 6 decimal places.

Note: See also the DEGREES() and RADIANS() functions.

Syntax

PI()

Technical Details

Works in: MySQL 5.7, MySQL 5.6, MySQL 5.5, MySQL 5.1, MySQL 5.0, MySQL 4.1, MySQL 4.0, MySQL 3.23

❮ MySQL Functions