Sign in Join
FPDoc Onlineexperiment

Exp function

In unit System

Exponentiate.

Declaration

pascal
function Exp(d: ValReal): ValReal

Description

Exp returns the exponent of X, i.e. the number e to the power X.

Errors

None.

See also

Example: ex22

pascal
Program Example22;

{ Program to demonstrate the Exp function. }

begin
  Writeln (Exp(1):8:2); { Should print 2.72 }
end.

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