math.pi

Full name
math.pi
Library
math
Syntax

math.pi

Description

The constant math.pi returns the number pi to 15 decimal places.

Parameters

math.pi does not accept arguments.

Examples

We can print the constant pi with the following code:

math.pi

3.141592653589793
Submitted by admin on Sun, 01/20/2019 - 22:42