This topic describes how to use the mathematical function PI in Realtime Compute.

Syntax

DOUBLE PI()  

Description

Returns the value of Pi.

Example

  • Test data
    ID (INT) X (INT)
    1 8
  • Test statements
    SELECT id, PI() as dou1
    FROM T1;            
  • Test results
    ID (INT) dou1 (DOUBLE)
    1 3.141592653589793