News

However, if you use Math.Round to perform the addition, JavaScript rounds the value to 3. This method, which works in all browsers, rounds numbers to the next integer if the result is 0.5 or greater.