PI

Returns the value of PI 3.141592653589793. There are no arguments. The result of the function is double-precision floating-point. The result cannot be null.

Example:

The following returns the circumference of a circle with diameter 10:

  SELECT PI()*10
    FROM QSYS2.QSQPTABL