floor

種類メソッド
書式 Math.floor(値)
解説
値を切り下げます。
サンプルコード
function sampleCode()
{
txtField.data = Math.floor(0.5);
}
sampleCode();
実際のスクリプトをダウンロード