javascript roundoff negative numbers code example
Example 1: round up number typescript
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
Example 2: round to nearest decimal javascript
round(12345.6789, -1) // 12350
round(12345.6789, -2) // 12300
var n = 4.3;
alert(Math.ceil(n)); //alerts 5
round(12345.6789, -1) // 12350
round(12345.6789, -2) // 12300