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