sloisel / numeric

Numerical analysis in Javascript
http://www.numericjs.com/
Other
1.42k stars 176 forks source link

Calculation error #82

Open 1416246152 opened 5 years ago

1416246152 commented 5 years ago

numeric.sub(72324.3311,200.10) // 72124.23109999999

alex7229 commented 5 years ago

That's a js problem itself. Almost every other language cannot compute 0.1 + 0.2. It would not be equal to 0.3. You can Google it => "0.1 + 0.2 js"