I have written a vehicle's extras page in cliend side, where addition and removal of extras is handled with javascript. The prices come as string in the array and I am using the pasrseFloat(string) function to convert these into floats.

However, if I select all the extras of a car (one by one) to my list and then remove them it leaves me with a plus or minus 1 - 5 punds difference. I presume this is due to the parseFloat function - any advice on how I can fix this issue. Also is there a way to format the display of floats to decimal places.

Thanks in advance.