WorksheetFunction.Ln Method

Returns the natural logarithm of a number. Natural logarithms are based on the constant e (2.71828182845904).

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Function Ln ( _
    Arg1 As Double _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim returnValue As Double

returnValue = instance.Ln(Arg1)
double Ln(
    double Arg1
)

Parameters

  • Arg1
    Type: System.Double

    Number - the positive real number for which you want the natural logarithm.

Return Value

Type: System.Double

Remarks

Ln is the inverse of the EXP function.

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace