LOG() Function - Common Logarithm

Syntax

LOG(num{,precis}{,ERR=lineref})

Description

The LOG() function returns the common logarithm (base 10) of its argument.

Parameter

Description

number

Argument to be processed.

precis

Numeric precision, an integer in the range of 1 to 16 (default is 6) that represents the number of decimal places desired in the result.

ERR=lineref

Branch to be taken if an error occurs during execution.

Example

Example 1

The following defines the log of X:

1000 LET A=LOG(X)

Example 2

The following defines the log of X with a precision of 16:

1000 LET A=LOG(X,16)

Example 3

The following acts a counterpart to the LOG() function, allowing non-integer powers:

1000 LET A=B^3.45

See Also

Functions - Alphabetical Listing