Share via


WorksheetFunction.Log Method

Returns the logarithm of a number to the base you specify.

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

Syntax

'Declaration
Function Log ( _
    Arg1 As Double, _
    Arg2 As Object _
) As Double
'Usage
Dim instance As WorksheetFunction
Dim Arg1 As Double
Dim Arg2 As Object
Dim returnValue As Double

returnValue = instance.Log(Arg1, Arg2)
double Log(
    double Arg1,
    Object Arg2
)

Parameters

  • Arg1
    Type: System.Double

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

  • Arg2
    Type: System.Object

    Base - the base of the logarithm. If base is omitted, it is assumed to be 10.

Return Value

Type: System.Double

See Also

Reference

WorksheetFunction Interface

WorksheetFunction Members

Microsoft.Office.Interop.Excel Namespace