How to round up to the nearest 100 in JavaScript

Use Math.ceil(), if you want to always round up:

Math.ceil(number/100)*100

Leave a Comment