Log Method (Double)
Collapse the table of content
Expand the table of content

Math.Log Method (Double)

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Returns the natural (base e) logarithm of a specified number.

Namespace:  System
Assembly:  mscorlib (in mscorlib.dll)

'Declaration
Public Shared Function Log ( _
	d As Double _
) As Double

Parameters

d
Type: System.Double
A number whose logarithm is to be found.

Return Value

Type: System.Double
One of the values in the following table.

Sign of d

Returns

Positive

The natural logarithm of d; that is, ln d, or log ed

Zero

NegativeInfinity

Negative

NaN

Equal to NaN

NaN

Equal to PositiveInfinity

PositiveInfinity

Parameter d is specified as a base 10 number.

The following example uses Log to evaluate certain logarithmic identities for selected values.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft