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

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!