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
Return values
string —The formatted AQL expression.