js decimal round up always code example Example: round up number typescript var n = 4.3; alert(Math.ceil(n)); //alerts 5