Number#toFixed() is not working properly for some numbers.
Eg:-
7.795.toFixed(2)
//-> 7.79 #Instead it should display 7.80
8.895.toFixed(2)
//-> 8.89 #Instead it should display 8.90
1.105.toFixed(2)
//-> 1.10 #Instead it should display 1.11
55.305.toFixed(2)
//-> 55.30 #Instead it should display 55.31
Please provide me with a solution to this problem.
This is not a jQuery error, this is the behavior of default Javascript.
A solution can be: