double MathRound(double value)
Returns value rounded to the nearest integer of the specified numeric value.
指定した数値の最も近い整数に丸められた値を返します。
Parameters:
パラメータ:
value - Numeric value to be rounded.
丸める対象の数値
Sample:
サンプル:
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
|