rounding numbers to the nearest 10 100 and 1000 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;
}