PI() - Value of PI, π

Q

How to get the value of PI, π, using the PI() function?

✍: FYIcenter.com

A

PI() is a MySQL built-in function that returns the value of PI, π, For example:

SELECT PI();
  -- +----------+
  -- | PI()     |
  -- +----------+
  -- | 3.141593 |
  -- +----------+

Reference information of the PI() function:

PI(): val
  Returns the remainder of X divided by Y.

Arguments, return value and availability:
  val: Return value. The value of PI, π.
  Available since MySQL 4.0.

 

POW() - X Raised to Power of Y

MOD() - Remainder of X divided by Y

MySQL Functions on Numeric Values

⇑⇑ MySQL Function References

2023-11-14, 243🔥, 0💬