JS小數轉為整數floor:下退Math.floor(12.9999) = 12 ceil:上進Math.ceil(12.1) = 13; round: 四捨五入Math.round(12.5) = 13 Math.round(12.4) = 12