round number down to nearest 100th decimal javscript code example Example: js nearest 100 Math.round(n / 100) * 100