typescript round down to integer code example Example: round up number typescript var n = 4.3; alert(Math.ceil(n)); //alerts 5