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:
パラメータ:
1 2 | <b>x</b> - Numeric value. 数値。 |
Sample:
サンプル:
1 2 3 4 5 6 7 8 | 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*/ |