round()

種  類
メソッド
バージョン
2.0

書  式
Math.round(式)

解  説
Math.roundは四捨五入します。10.4ならば10に、10.5であれば11となります。

コード
Console.clear();
Console.write(Math.
round(10.4),"\n");
Console.write(Math.
round(10.5),"\n");


■サンプルスクリプトをダウンロードする >>.zip