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