Different ways to round numbers:
let n = 4.7
Math.floor(n) // 4 (round down)
Math.ceil(n) // 5 (round up)
Math.round(n) // 5 (round to nearest)
Math.trunc(n) // 4 (remove decimals)
For negative numbers:
Math.floor(-4.7) // -5 (toward negative infinity)
Math.ceil(-4.7) // -4 (toward positive infinity)
Math.trunc(-4.7) // -4 (toward zero)