Sign in Join
FPDoc Onlineexperiment

Pi function

In unit System

Return the value of PI.

Declaration

pascal
function Pi: ValReal

Description

Pi returns the value of Pi (3.1415926535897932385).

Errors

None.

See also

Example: ex47

pascal
Program Example47;

{ Program to demonstrate the Pi function. }

begin
  Writeln (Pi);         {3.1415926}
  Writeln (Sin(Pi));
end.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.