round number to nearest ten in javascript code example
Example 1: javascript round to nearest 10
var rounded = Math.round(number / 10) * 10
Example 2: Rounding Up To The Nearest Hundred js
function round100 (num1) {
return Math.round(num1/100)*100;
}