pi[]

Returns value of π.

The constant pi (π) is a mathematical constant that is the ratio of a circle's circumference to its diameter. It is approximately equal to 3.141593.

For example, you can use π in a calculation, such as finding the area of a circle with radius 5: area = [pi[] * 5 ** 2].

Syntax

pi[]

Parameters

Return Value Value of π.

Examples

#<result> = pi[]
(print,#<result>)

result: 3.141593

See also

sin, asin, cos, acos, tan, atan, atan2