js相乘的问题
使用js进行乘法计算
<input type="text" name="price" id="price" onclick="this.value=parseFloat(document.getElementById('form1').p1.value)*parseFloat(document.getElementById('form1').p2.value)" />
如果p1=1500
p2=1.36
以上计算结果却成了2040.0000000000002,应该结果是2040才对,这个是怎么回事啊?