MathObject.log(Double) 方法

定义

计算指定数字的以 e 为底的对数,即该指定数字的自然对数。Calculates the logarithm base e of the specified number, which is the natural logarithm of the specified number.

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 static double log(double x);
[Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_log)]
public static double log (double x);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_log)]
public static double log (double x);
[<Microsoft.JScript.JSFunction((Microsoft.JScript.JSFunctionAttributeEnum) 0, Microsoft.JScript.JSBuiltin.Math_log)>]
static member log : double -> double
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.None, Microsoft.JScript.JSBuiltin.Math_log)>]
static member log : double -> double
Public Shared Function log (x As Double) As Double

参数

x
Double

要计算其自然对数的数字。The number to calculate the natural logarithm of.

返回

Double

x 的自然对数。The natural logarithm of x.

属性

适用于

另请参阅