Skip to main content

Math.pi

Math.pi

Documentation

The mathematical constant pi, equal to the ratio of a circle circumference to its diameter.

Examples

Calculating the area of a circle.

      circle_area r = 2 * Math.pi * r^2