PI

The PI function returns a value that is an approximation of pi, the ratio of the circumference of a circle to its diameter.

The function type is numeric.

Format

Read syntax diagramSkip visual syntax diagramFUNCTION PI

When ARITH(COMPAT) is in effect, FUNCTION PI returns the long precision (64-bit) floating-point approximation of 3.141592653589793238462643383279503.

When ARITH(EXTEND) is in effect, FUNCTION PI returns the extended precision (128-bit) floating-point approximation of 3.141592653589793238462643383279503.