Javascript using round to the nearest 10 [duplicate] January 5, 2023 by Tarik This should do it: Math.ceil(N / 10) * 10; Where N is one of your numbers.