Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Math::Log Method (Double)

 

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

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

public:
static double Log(
	double d
)

Parameters

d
Type: System::Double

The number whose logarithm is to be found.

Return Value

Type: System::Double

One of the values in the following table.

d parameter

Return value

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 illustrates the Log method.

No code example is currently available or this language may not be supported.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: