Skip to content

LOG

Logarithm

This numeric function returns the base-10 logarithm of a positive number.

LOG (numeric-value)

numeric-value is a positive number.

Since most logarithmic tables are printed to 4 decimal places, it may be advisable to set PRECISION 4 before using the LOG function.

If an attempt is made to use 0 or a negative number for numeric-value, an ERR=40 results.

LOG (2)

The result is 0.301.

LOG (5)

The result is 0.699.

LOG (10)

The result is 1.

LOG (100)

The result is 2.

The above examples assume PRECISION 4

NLG function

From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF