how to round value in javascript to tenths place code example
Example 1: javascript round to nearest 10
var rounded = Math.round(number / 10) * 10
Example 2: round to nearest decimal javascript
round(12345.6789, -1) // 12350
round(12345.6789, -2) // 12300