Hacker News new | past | comments | ask | show | jobs | submit login
What every computer scientist should know about floating-point arithmetic (sun.com)
23 points by TriinT on July 4, 2009 | hide | past | favorite | 2 comments



94 Pages? I'll sum it up for you here:

Rounding error happens. It's worse if you do add/subtract a very big number and a very small number.

Rounding error increases as you do more operations.

Depending on your platform, you may need to accomodate NaN's and positive/negative infinity.


If you really need floating point you don't understand your problem.

Old programmers joke from the time when cpus didn't have floating point co-processors.

It's possible, but it certainly is tedious.




Consider applying for YC's first-ever Fall batch! Applications are open till Aug 27.

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

Search: