pi
Description
Returns the mathematical constant π (pi), limited to 15 decimal places.
Syntax
pi(): number
Example
Use case: Compute the area of a circle
Use π with the formula π × r² to calculate the area of a circle given a radius in meters.
Example data
{
"distance_m": 10
}
Example query
create area from (pi() * power(distance_m, 2))
Example output
{
"distance_m": 10,
"area": 314.1592653589793
}