NLG
Natural Logarithm
This numeric function returns the natural logarithm of a positive number to the base e(2.718282).
Syntax
Section titled “Syntax”NLG (numeric-value [,ERR=line-ref|,ERC=error-code])numeric-value- is any positive number.
line-ref- is the program line number or label to branch to if an error is produced by this function.
error-code- is a programmer-defined error code. Valid values are positive or negative whole numbers.
Remarks
Section titled “Remarks”If an attempt is made to use 0 or a negative number for numeric-value, an ERR=40 results.
Examples
Section titled “Examples”NLG (2)The result is 0.6931.
NLG (5)The result is 1.6094.
NLG (10)The result is 2.3026.
NLG (100)The result is 4.6052.
These examples assume PRECISION 4.
See also
Section titled “See also”From the Thoroughbred Basic Language Reference, Volume II: F–Q, version 8.9.1. Open this page in the PDF