Pi

From Free Pascal wiki
Revision as of 17:14, 6 August 2022 by Kai Burghardt (talk | contribs) (resolve Category: Pages using deprecated enclose attributes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Deutsch (de) English (en) suomi (fi) français (fr) русский (ru) 中文(中国大陆)‎ (zh_CN)

π (greek letter pi) is the ratio of the circumference of a circle to its diameter. π is about 3.14159265358979. A full circle has 2*pi() radians.

In Free Pascal's RTL, system.pi is a function which returns the value of π. This allows you to assign addr(system.pi) to a procedural variable.

pi()/4 is the same as arctan(1).


See also