The Math.PI property
The Math.PI property returns
the number Pi with 15
decimal places.
Syntax
javascriptMath.PI;
Example
Let's display the value of
the number Pi:
javascriptconsole.log(Math.PI);
The code execution result:
javascript3.141592653589793