Mono Class Library: System.Math Overview | Members

System.Math.Log Method

Returns the natural logarithm of the specified double. [Edit]

public static double Log (double d)

Parameters

d
A double whose natural logarithm is to be found. [Edit]

Returns

Returns a double whose value is as follows.

ConditionReturns
d > 0. The value of the natural logarithm of d.
d == 0.double.NegativeInfinity.

d < 0.

-or-

d is equal to double.NegativeInfinity.

-or-

d is equal to double.NaN.

double.NaN.
d is equal to double.PositiveInfinity.double.PositiveInfinity.
[Edit]

Remarks

d is specified as a base 10 number. [Edit]

Requirements

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