MathObject.sqrt(Double) 方法

定义

计算指定数字的平方根。Calculates the square root of the specified number.

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

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

参数

x
Double

要计算其平方根的数字。The number to calculate the square root of.

返回

Double

x 的平方根。The square root of x.

属性

适用于

另请参阅