Home>Article>Backend Development> What does php pi function mean?

What does php pi function mean?

藏色散人
藏色散人 Original
2019-05-23 14:45:19 6863browse

The pi() function is a built-in function in PHP, used to obtain the value of pi. It can return the approximate value of pi "3.1415926535898"; the syntax is "pi();". This function is simply used to obtain the pi value; the named constant "M_PI" produces the same result as pi().

What does php pi function mean?

What does the pi() function mean?

Function: Get the pi value.

Syntax:

pi()

Parameters: There are no parameters in the pi() function.

Explanation: This function is simply used to obtain the pi value.

php pi() function example

Output:

3.1415926535898

The above is the detailed content of What does php pi function mean?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn