pi()

Table of Contents

Definition

pi() takes no arguments and returns the value of pi to the precision of 11 decimals.

Examples

You can use pi() as a part of math operation. The following example returns 78.5398163395 as a result.

| makeresults
| eval radius=5
| eval area=pi()*pow(radius,2)
Screenshot of the previous example’s result

Further Reading