MathObject.abs(Double) 方法

定义

计算指定数字的绝对值。Calculates the absolute value of the specified number.

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

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

参数

d
Double

要计算其绝对值的数字。The number to calculate the absolute value of.

返回

Double

d 的绝对值。The absolute value of d.

属性

适用于