PI( ) function

Returns the value of pi to 15 decimal places.

Syntax

PI( )

Parameters

This function does not have any parameters.

Output

Numeric.

Examples

Basic examples

Returns 3.141592653589793 (the value of pi to 15 decimal places):

PI( )

Returns 1.047197551196598 (the equivalent in radians of 60 degrees):

60 * PI( )/180

Advanced examples

Using degrees as input

Returns 0.866025403784439 (the sine of 60 degrees):

SIN(60 * PI( )/180)

Remarks

When to use PI( )

Use PI( ) to convert degrees to radians: (degrees * PI( )/180) = radians. Radians are the required input for three of Analytics's math functions: SIN( ), COS( ), and TAN( ).

ACL Scripting Guide 14.1