
Purpose::
To return the natural logarithm of x.
Syntax:
LOG(x)
Comments:
x must be a number greater than zero.
LOG(x) is calculated in single precision, unless the /d switch is used when GW-BASIC is executed.
Examples:
PRINT LOG(2) .6931471
PRINT LOG(1) 0