Javascript using round to the nearest 10 [duplicate]

This should do it:

Math.ceil(N / 10) * 10;

Where N is one of your numbers.

Leave a Comment