Returns the natural logarithm (base e) of the specified numeric expression.
LOG(nExpression) |
Parameters
- nExpression
-
Specifies the numeric expression for which LOG( ) returns the value of x in the equation e^x = nExpression. nExpression must be greater than 0.
Return Value
Numeric
Remarks
The base for the natural logarithm is the constant e. The number of decimal places returned in the result is specified with SET DECIMALS.
Example
Copy Code | |
|---|---|
CLEAR ? LOG(1) && Displays 0.00 STORE EXP(2) TO gneSquare ? LOG(gneSquare) && Displays 2.00 | |
Microsoft Visual FoxPro 9 SP2 Help file, VFPX Edition v1.08