round all values of object javascript code example
Example 1: round up number typescript
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
Example 2: round down the number javascript
+3.5 => +3.0
-3.5 => -4.0
+3.5 => +3.0 using Math.floor()
-3.5 => -3.0 using Math.ceil()