Categories

The rounding problem can be avoided by using numbers represented in exponential notation:
Number(Math.round(1.005+'e2')+'e-2'); // 1.01
Source: http://www.jacklmoore.com/notes/rounding-in-javascript/