Partilhar via


PI( ) Function

Returns the numeric constant pi.

PI( )

Return Values

Numeric

Remarks

The numeric constant pi (3.141592) is the ratio of the circumference of a circle to its diameter.

The number of decimal places displayed in the value returned by PI( ) is determined by SET DECIMALS.

Example

CLEAR
? PI( ) && Displays 3.14
STORE 2.30 TO gnRadius
STORE PI( ) * gnRadius^2 TO gnArea
? gnArea  && Displays 16.6190

See Also

SET DECIMALS | STORE Command | Circle Method