Lingo Dictionary > O-R > PI

 

PI

Syntax

PI

Description

Constant; returns the value of pi (¼), the ratio of a circle's circumference to its diameter, as a floating-point number. The value is rounded to the number of decimal places set by the floatPrecision property.

Example

This statement uses the PI constant as part of an equation for calculating the area of a circle:

set vArea = PI*power(vRadius,2)