# pi [GstarCAD 2011](../../../Index.md) → [Developer Reference](../../%28Developer%20Reference%29.md) → [AutoLISP Reference](../%28AutoLISP%20Reference%29.md) → [LISP Functions](%28LISP%20Functions%29.md) <a id="240"></a> ## pi --- Pi is 3.14159265... --- **Pi** is not a function, but rather a constant value commonly used in programming GstarCAD® with LISP. The value of **pi** is approximately equal to 3.14159265. ### Examples | Code | Returns | | --- | --- | | !**pi** | 3.14159 | **WARNING** It is possible to lose the value of **pi**. For example, the following code causes **pi** to take on the value of 2.0: | Code | Returns | | --- | --- | | (setq **pi** 2.0) | 2.0 | | !**pi** | 2.0 | **Tell me about...** [(atan number1 \[number2\])](%28atan%20number1%20-number2-%29.md) [(cos angle)](IDR_LISP_B147.md) [(sin angle)](%28sin%20angle%29.md) [(tan angle)](%28tan%20angle%29.md) [LISP Compatibility](../LISP%20Compatibility.md) [Programming Overview of LISP (LISt Processing) Language](../Programming%20Overview%20of%20LISP%20%28LISt%20Processing%29%20Language.md) <a id="holding"></a> ## Other versions with matching text [GstarCAD 2012](../../../../2012/Developer%20Reference/AutoLISP%20Reference/LISP%20Functions/pi.md)