function round to nearest 100 with javascript code example Example: js nearest 100 Math.round(n / 100) * 100