MathObject.ceil(Double) 方法

定义

计算指定数字的上限,即大于或等于该指定数字的最小整数。Calculates the ceiling of the specified number, which is the smallest integer that is greater than or equal to the specified number.

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

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

参数

x
Double

要计算其上限的数字。The number to calculate the ceiling of.

返回

Double

x 的上限。The ceiling of x.

属性

适用于

另请参阅