help files
Z505 | PasWiki | FUQ | Search | Main Docs | API Guide



[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'System' (#rtl)

ln

Calculate logarithm

Declaration

Source position: mathh.inc line 64

function ln(

  d: ValReal

):ValReal;

Description

Ln returns the natural logarithm of the Real parameter X. X must be positive.

Errors

An run-time error will occur when X is negative.

See also

Exp

  

Exponentiate

Power

  

Raise float to integer power

Example

Program Example37;

{ Program to demonstrate the Ln function. }

begin
  Writeln (Ln(1));      { Prints 0 }
  Writeln (Ln(Exp(1))); { Prints 1 }
end.

Notes

 No notes exist for this page yet. 





lufdoc, Powtils, fpc, freepascal, delphi, kylix, c/c++, mysql, cgi web framework docs, Z505