×
A new build of Corona SDK is now available to subscribers. Not a subscriber? Subscribe now.
CoronaSDK 2014.2484 | Released: 1 Nov 2014, 1:36am | What's New | Download Now

math.pi

Description:

Returns the constant pi.

Syntax:

math.pi

Example:

print (math.pi)   --->  3.1415926535898

Parameters:

None.

Returns:

A number.

Remarks:
Supported on operating systems and platforms for build numbers shown:
  • Mac OS X:
    Corona SDK 1.0
  • Windows:
    Corona SDK 2.0
  • iOS:
    Corona SDK 1.0
  • Android:
    Corona SDK 2.0