Log (function)

Syntax

Log(number)

Description

Returns a Double representing the natural logarithm of a given number.

Comments

The value of number must be a Double greater than 0.

The value of e is 2.71828.

Example

This example calculates the natural log of 100 and displays it in a message box.

Sub Main()
  x# = Log(100)
  MsgBox "The natural logarithm of 100 is: " & x#
End Sub

See Also

Exp (function).

More information

L