Math.ceil
Math.floor
Math.round
Returns the largest integer less than or equal to a given number.
Math.floor(x)
아래 값을 입력하면 예제에 즉시 반영됩니다.
console
Math
console.log(Math.floor(4.9)); // 4 console.log(Math.floor(-4.1)); // -5