==== π ====
----
Push the symbolic constant 'π' on the stack
----
^ __Input Stack__ ^ ^ __Output Stack__ ^
| **** | **→** | **Cπ** |
| //Level 1 / Argument 1// | //→// | //Level 1// |
{{page>manual:chapter6:aux:legend&nofooter&noeditbtn&inline}}
| **Keyword type** | [[manual:chapter5:basics#analytic-functions|Analytic Function]] ||
| **Parallel list processing capabilities** | [[manual:chapter5:listproc#group-1commands-that-cannot-parallel-process|Group 1]] | //Commands that cannot parallel process// |
| **Affected by flags** | //None// ||
----
The ''π'' function pushes on the stack a symbolic representation of the constant $π$.
Application of the ''[[manual:chapter6:operators:cmd_ovr_num|→NUM]]'' operator returns its closest approximation to 2000-digits accuracy, irrespective of the numeric precision defined by ''[[manual:chapter6:arithmetic:cmd_setprec|SETPREC]]''. This is done to ensure maximum accuracy if the symbolic expression is ultimately converted to a real number.
----
''π'' is not fully equivalent to its **userRPL** counterpart.
In particular:
* **userRPL** returns the closest approximation of $π$ to 12-digits accuracy.
----
**__Input__**
« 6 SETPREC
π →NUM
DUP
1 *
»
\\
**__Output__**
4:
3:
2: 3.14159265359.
1: 3.14159.
…………………………………………………………………………………………………………
----
{{page>manual:chapter6:constants&nofooter&noeditbtn&inline}}