Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Math is not terribly precise I'm afraid :)

  > 1111111111111111111111111111111*9
  > 10,000,000,000,000,000,000,000,000,000,000


That doesn’t seem like a floating point inaccuracy. What’s going on there?


NumPad uses Decimal.js to represent numbers

https://mikemcl.github.io/decimal.js/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: