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/




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: