Oihana PHP Arango

pi.php

Table of Contents

Functions

pi()  : string
Return the mathematical constant π (pi).

Functions

pi()

Return the mathematical constant π (pi).

pi() : string

This helper wraps the ArangoDB AQL function PI() which returns the mathematical constant π (pi), approximately 3.141592653589793.

Example AQL usage:

PI()                          // returns 3.141592653589793
PI() * 2                      // returns 6.283185307179586 (2π)
PI() / 2                      // returns 1.5707963267948966 (π/2)
Tags
example
use function oihana\arango\db\functions\numerics\pi;

$expr = pi();
// Produces: 'PI()'
see
https://docs.arangodb.com/stable/aql/functions/numeric/#pi
since
1.0.0
author

Marc Alcaraz

Return values
string

The formatted AQL expression.

On this page

Search results