Math.Log Method (Double)
Silverlight
Returns the natural (base e) logarithm of a specified number.
Namespace: System
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 e d |
Zero | |
Negative | |
Equal to NaN | |
Equal to PositiveInfinity |
The following example uses Log to evaluate certain logarithmic identities for selected values.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.