round to nearest hundred js code example
Example 1: js nearest 100
Math.round(n / 100) * 100
Example 2: Rounding Up To The Nearest Hundred js
function round100 (num1) {
return Math.round(num1/100)*100;
}
Math.round(n / 100) * 100
function round100 (num1) {
return Math.round(num1/100)*100;
}