Check out v4 of the Fauna CLI

v4 of the Fauna CLI is now in beta.

The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start.

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!