I spent a lot of time to solve this problem on my system. I solved I solved, but at some point it is resulting (the value of the subtraction) = -0.0 and I have to give .replace ('-', '') in order to show the user a positive value and this causes a changeable lapse that is noticeable . All this is occurring due to subtracting 0.1 from 2.8 results in 2.6999999999999997. In my code it is already used .toFixed (1) and anyway it will not, I even used Math.round ().
After all, what is the point of subtracting 0.1 out of 2.8 and resulting in it?
@Edit
Warning to people who "fell" from parachute. This question is not duplicated either has to do with the indicated topic, because my question was something very specific that, just looking at the code in the jsfiddle left in the comments, is that can come a solution to your problem.