I used the tofixed()
function to convert 2 decimal places to 10 decimal places. The conversion turn out to be wrong.
My code is:
var decimal = parseFloat((343993110.92)).toFixed(10);
The result in Google Chrome is:
decimal = 343993110.9200000167
In Internet explorer the result of the conversion is correct.
Question: How do I get the expected result of 343993110.9200000000
in Google Chrome?