js round up to nearest 5 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;
}
var rounded = Math.round(number / 10) * 10
function round100 (num1) {
return Math.round(num1/100)*100;
}