引数名 | 初期値 | I/O | 詳細 |
value | - | In | 四捨五入する値 |
#property strict // strictは絶対に削除しない事 void OnInit() { Print( "MathRound(5.1) = ",MathRound(5.1) ); Print( "MathRound(5.0) = ",MathRound(5.0) ); Print( "MathRound(4.6) = ",MathRound(4.6) ); Print( "MathRound(4.5) = ",MathRound(4.5) ); Print( "MathRound(4.4) = ",MathRound(4.4) ); }
MathRound(5.1) = 5.0 MathRound(5.0) = 5.0 MathRound(4.6) = 5.0 MathRound(4.5) = 5.0 MathRound(4.4) = 4.0