Multiplies pi by a specified number.
Pi ( n )
Argument |
Description |
---|---|
n |
The number you want to multiply by pi (3.14159265358979323...) |
Double. Returns the result of multiplying n by pi if it succeeds and –1 if an error occurs.
Use Pi to convert angles to and from radians.
This expression returns pi:
Pi(1)
Both these expressions return the area of a circle with the radius Rad:
Pi(1) * Rad^2 Pi(Rad^2)
This expression computes the cosine of a 45-degree angle:
Cos(45.0 * (Pi(2)/360))