Math.PI

Get the mathematical constant pi (π).

Signature

Math.PI: Number

Description

Gets the mathematical constant pi, which is the ratio of the circumference of a circle to its diameter.

Return value

Type Description

Number

Value of pi.

Examples

let radius = 5
Math.PI * (radius + radius)
31.41592653589793
\