js round up code example
Example 1: js rounding
Math.floor(5.5)
Math.round(5.5)
Math.ceil(5.5)
Math.floor(5.57 * 10) / 10
Example 2: round up number typescript
var n = 4.3;
alert(Math.ceil(n));
Example 3: rounding off in javascript
var avg=10.55;
console.log(Math.round(avg));
Example 4: javascript ceiling
var ceiling1 = Math.ceil(4.7);
var ceiling2 = Math.ceil(-3.4);
Example 5: javascript round down
Math.floor(x);
Example 6: round up javascript
Math.round(3.14159)
Math.round(3.5)
Math.floor(3.8)
Math.ceil(3.2)