Contents | Prev | Next

7.2.39 The log function

Description

The log function returns the logarithm to the base 10 of the parameter passed to it. The type of the value returned by this function is always real.

Parameter

The log function's only parameter is a numeric expression (i.e. an expression of integral type or of real type).

Example

   log(1)    returns   0.0
   ln(10)    returns   1.0
   ln(100)   returns   2.0

Portability

Operating Systems: All
Standard Pascal: No

Contents | Prev | Next