[next] [prev] [prev-tail] [tail] [up]

#### Power

Declaration:
  Function Power (base,expon : Real) : Real;
Description:

  Power returns the value of base to the power expon. Base and expon can be of type Longint, in which case the result will also be a Longint.

  The function actually returns Exp(expon*Ln(base))

Errors:
  None.
See also:
  Exp (493), Ln (528)

Listing: refex/ex78.pp

Program Example78;
{ Program to demonstrate the Power function. }
begin
Writeln (Power(exp(1.0),1.0):8:2); { Should print 2.72 }
end.

[next] [prev] [prev-tail] [front] [up]