double MathRound(double value)
Returns value rounded to the nearest integer of the specified numeric value.
指定した数値の最も近い整数に丸められた値を返します。
Parameters:
パラメータ:
1 2 | <b>value</b> - Numeric value to be rounded. 丸める対象の数値 |
Sample:
サンプル:
1 2 3 4 5 6 | double y=MathRound(2.8); Print("The round of 2.8 is ",y); y=MathRound(2.4); Print("The round of -2.4 is ",y); //Output: The round of 2.8 is 3 // The round of -2.4 is -2 |