floor
種類
メソッド
書式
Math.floor(値)
解説
値を切り下げます。
サンプルコード
n = eval(prompt("Input Number",0.5));
alert("値を切り下げると"+Math.floor(n)+"です");
実際のスクリプトを
ダウンロード