Click or drag to resize
MathLog Method (Double)
Returns the natural (base e) logarithm of a specified number.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public static double Log(
	double d
)

Parameters

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

Return Value

Type: Double
One of the values in the following table. d parameterReturn value Positive The natural logarithm of d; that is, ln d, or log edZero NegativeInfinityNegative NaNEqual to NaNNaNEqual to PositiveInfinityPositiveInfinity
See Also