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

There was a very good article explaining this using MATLAB, but I can't find it right now. This one is pretty close and explains the concepts of overflow, underflow, etc. The diagrams about "eps" are pretty good, even if your language of choice is Python, C/C++, etc.

http://blogs.mathworks.com/cleve/2014/07/07/floating-point-n...



Python has math.isclose() in the standard library, with configurable tolerances:

https://docs.python.org/3/library/math.html#math.isclose




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

Search: