If I do the following:
parseInt(parseFloat(9.20)*100*1)/100 // returns 9.19
It returns 9.19 when I want it to return 9.20 what do I need to change to get it to return the correct value?
I have the same issue when I change it to:
parseInt(parseFloat(9.12)*100*1)/100 // returns 9.11
But any other value works fine:
parseInt(parseFloat(9.30)*100*1)/100 // returns 9.30 (correct)
UPDATE:
The solution was this:
(Math.round(9.20*100*1)/100).toFixed(2)