limit math round in javascript code example Example: round up number typescript var n = 4.3; alert(Math.ceil(n)); //alerts 5