← All built-ins / M_PI()

M_PI()

M_PI(...$args): float

Parameters

Takes no arguments.

Return value

The constant π as a callable fallback — prefer the constant.

Example

echo round(M_PI, 5);
3.14159

See also

pi()