how to round numbers to the nearest 10th in jquery code example Example: javascript round to nearest 10 var rounded = Math.round(number / 10) * 10