4 ms·
I'm curious where 128bit floats become a significant concern? My understanding is that any critical numerical things would be done using integer arithmetic to e
by mdtusz 5y ago
I'm curious where 128bit floats become a significant concern? My understanding is that any critical numerical things would be done using integer arithmetic to eliminate any imprecision errors, and anything else likely is fine using doubles.
- bick_nyers 5y agoIntegers are not often expressive enough for a lot of applications, so we use floats. I'm sure for a lot of things, doubles are good enough, but a better safe than sorry approach will lead you to use 128bit floats. The case study that I learned in my Numerical Analysis course was the patriot missile incident, which lead to 28 death in the early 90s. Essentially, there was a timer implemented that used floats, and due to the inherent rounding error of floats, after enough iterations this caused the missile to miss its target by miles. There were some operational errors involved, such as leaving the missile "turned on" for longer than was suggested by the manufacturer, but still, these types of incidents should not happen. Even with double precision, there are errors. For instance, 0.3 is actually represented as: 0.299999999999999988897769753748434595763683319091796875