how to round in typescript code example
Example 1: javascript round to nearest 10
var rounded = Math.round(number / 10) * 10
Example 2: round up number typescript
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
var rounded = Math.round(number / 10) * 10
var n = 4.3;
alert(Math.ceil(n)); //alerts 5