Use Math.ceil()
, if you want to always round up:
Math.ceil(number/100)*100
More Related Contents:
- Get the percentage of a number with javascript [closed]
- how to use if(math.random == 50)? [closed]
- What is the quickest way to subtract a variable from a number and set the variable?
- Slope function error(sort-of)… again [closed]
- How to force JS to do math instead of putting two strings together [duplicate]
- JavaScript % (modulo) gives a negative result for negative numbers
- Javascript (+) sign concatenates instead of giving sum of variables
- JavaScript math, round to two decimal places [duplicate]
- Javascript: formatting a rounded number to N decimals
- What does the ^ (caret) symbol do in JavaScript?
- How to perform an integer division, and separately get the remainder, in JavaScript?
- Safe evaluation of arithmetic expressions in Javascript
- How can I remove the decimal part from JavaScript number?
- What is the fastest factorial function in JavaScript? [closed]
- What’s the algorithm to calculate aspect ratio?
- Adding to Number.MAX_VALUE
- How can I specify the base for Math.log() in JavaScript?
- Avoiding problems with JavaScript’s weird decimal calculations
- Calculating the shortest route between two points
- How can I get sin, cos, and tan to use degrees instead of radians?
- Float sum with javascript [duplicate]
- Write a truly inclusive random method for javascript
- JS how to find the greatest common divisor [closed]
- How to find the least common multiple of a range of numbers?
- How to simplify a decimal into the smallest possible fraction?
- Show a leading zero if a number is less than 10 [duplicate]
- parseFloat rounding
- JavaScript: Round to a number of decimal places, but strip extra zeros
- How to calculate rotation angle from rectangle points?
- Javascript: PI (π) Calculator