LN function

Syntax

LN (expression)

Description

Use the LN function to calculate the natural logarithm of the value of an expression, using base "e". The value of "e" is approximately 2.71828. expression must evaluate to a numeric value greater than 0.

If expression is 0 or negative, 0 is returned and a warning is printed. If expression evaluates to the null value, null is returned.

Example

PRINT LN(6)

This is the program output:

1.7918