Log function

Category: Math

Summary

Natural logarithm.

Syntax

Returns a Double specifying the natural logarithm of a number.

Example

Example
This example uses the Log function to return the natural logarithm of a number.
Dim MyAngle, MyLog
' Define angle in radians.
MyAngle = 1.3
' Calculate inverse hyperbolic sine.
MyLog = Log(MyAngle + Sqr(MyAngle * MyAngle + 1))

Microsoft Support Page

https://learn.microsoft.com/en-us/office/vba/language/reference/user-interface-help/log-function

Back to Functions