round off to higher value in javascript code example
Example 1: round up number typescript
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
Example 2: javascript ceiling
var ceiling1 = Math.ceil(4.7); //5
var ceiling2 = Math.ceil(-3.4); //-3
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
var ceiling1 = Math.ceil(4.7); //5
var ceiling2 = Math.ceil(-3.4); //-3