ParseFloat function in JavaScript

前端 未结 5 746
暖寄归人
暖寄归人 2021-02-14 04:09

When I am adding two textbox values that are 1.001 and 0.001 and then I do a parseFloat I get 1.0019999999. I wan

5条回答
  •  感情败类
    2021-02-14 04:51

    This is a known problem: see accuraty problem and the minimisation of the accuracy problem: minimisation

提交回复
热议问题