MathRound

2019/07/17 19:00
74

double MathRound( double value)

指定した値の四捨五入した値を返す。

Parameters:
value - 数値
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

コメント