Check out example codes for "round up number typescript". It will help you in understanding the concepts better.

Code Example 1

var n = 4.3;
alert(Math.ceil(n)); //alerts 5

Learn ReactJs, React Native from akashmittal.com