offline version v3


51 of 264 menu

The Math.PI property

The Math.PI property returns the number Pi with 15 decimal places.

Syntax

Math.PI;

Example

Let's display the value of the number Pi:

console.log(Math.PI);

The code execution result:

3.141592653589793
enru