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.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- d
- Type: System.Double
A number whose logarithm is to be found.
Return Value
Type: System.DoubleOne 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 | |
Negative | |
Equal to NaN | |
Equal to PositiveInfinity |
The following example uses Log to evaluate certain logarithmic identities for selected values.
Show: