Hacker News new | past | comments | ask | show | jobs | submit login

Wait until they learn about floating point.



What are they going to learn? That’s it’s by far the best fixed-size approximation to real number arithmetic we have, sufficient for essentially all of our scientific and engineering needs?


Besides what you said (which I mostly agree with), that floating point calculations can at times be extremely counter intuitive, weird and totally inaccurate.

While a single floating point operation gives you the best possible floating point result, the error for two consecutive floating point operations is unbounded.

They need to be treated carefully and people need to be aware of their shortcomings. You would be surprised how often I have seen even people here getting hung up over the fact that floating point numbers aren't behaving identically to real numbers.


> That’s it’s by far the best fixed-size approximation to real number arithmetic we have (*)

* for some use cases (**)

** conditions apply


I know that, but there are assumptions you cannot make about equivalence etc. So if he's commenting on inaccuracies of numbers, he may find that surprising.

Tough crowd, sheesh.




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

Search: