round

種類メソッド
書式 Math.round(値)
解説
値を四捨五入します。
サンプルコード
function sampleCode()
{
txtField.data = Math.round(0.56);
}
sampleCode();
実際のスクリプトをダウンロード