js round to nearest 0.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;
}