Lingo Dictionary > L-N > log()

 

log()

Syntax

log(number)

Description

Math function; calculates the natural logarithm of the number specified by number, which must be a decimal number greater than 0.

Example

This statement assigns the natural logarithm of 10.5 to the variable Answer.

Answer = log(10.5)

Example

This statement calculates the natural logarithm of the square root of the value Number and then assigns the result to the variable Answer:

Answer = log(Number.sqrt)