javascript divide and round up to whole number code example Example: round up number typescript var n = 4.3; alert(Math.ceil(n)); //alerts 5