double MathCeil(double x)
The MathCeil function returns a numeric value representing the smallest integer that exceeds or equals to x.
MathCeil 関数は、x を超える、もしくは等しい最小の整数値を表す数値を返します。
Parameters:
パラメータ:
x - Numeric value.
数値
Sample:
サンプル:
double y;
y=MathCeil(2.8);
Print("The ceil of 2.8 is ",y);
y=MathCeil(-2.8);
Print("The ceil of -2.8 is ",y);
/*Output:
The ceil of 2.8 is 3
The ceil of -2.8 is -2*/
|