System.Math.Log Method

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

Syntax

public static double Log (double d)

Parameters

d
The number whose logarithm is to be found.

Returns

One of the values in the following table.

Positive

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

Zero

double.NegativeInfinity

Negative

double.NaN

Equal to double.NaN

double.NaN

Equal to double.PositiveInfinity

double.PositiveInfinity

Remarks

Parameter d is specified as a base 10 number.

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0