double MathFloor(double x)
The MathFloor function returns a numeric value representing the largest integer that is less than or equal to x.
MathFloor 関数は、x 以下の最大の整数を表す数値を返します。
Parameters:
パラメータ:
x - Numeric value.
数値。
Sample:
サンプル:
double y;
y=MathFloor(2.8);
Print("The floor of 2.8 is ",y);
y=MathFloor(-2.8);
Print("The floor of -2.8 is ",y);
/*Output:
The floor of 2.8 is 2
The floor of -2.8 is -3*/
|