PI

Returns the value of π 3.141592653589793. There are no arguments.

Read syntax diagramSkip visual syntax diagramPI ()

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 SYSIBM.SYSDUMMY1