Partager via


StrictMath.Log(Double) Method

Definition

Returns the natural logarithm (base e) of a double value.

[Android.Runtime.Register("log", "(D)D", "")]
public static double Log (double a);
[<Android.Runtime.Register("log", "(D)D", "")>]
static member Log : double -> double

Parameters

a
Double

a value

Returns

the value ln&nbsp;a, the natural logarithm of a.

Attributes

Remarks

Returns the natural logarithm (base e) of a double value. Special cases: <ul><li>If the argument is NaN or less than zero, then the result is NaN. <li>If the argument is positive infinity, then the result is positive infinity. <li>If the argument is positive zero or negative zero, then the result is negative infinity. <li>If the argument is 1.0, then the result is positive zero. </ul>

Java documentation for java.lang.StrictMath.log(double).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to