Math.floor()は、JavaScriptのMathオブジェクトのfloor()メソッドという意味で、引数に数値を指定すると、小数点以下を切り捨てます。 もし引数に文字列など数値以外のものが入っているとNaNという値を返します。NaNはNot a Numberという意味です。 また、Mathは先頭を ...
The Math.floor() static method always rounds down and returns the largest integer less than or equal to a given number. It does so by multiplying the number by a power of 10, then rounding the result ...