3 ms·
Higher precision isn’t always available. IEEE 754 is an unusually well-thought-through standard (thanks to some smart people with a lot of painful experience)
by gumby 3y ago
Higher precision isn’t always available. IEEE 754 is an unusually well-thought-through standard (thanks to some smart people with a lot of painful experience) and is pretty good at justifying its decisions, some of which are surprising (far from obvious) to anyone not steeped in it.
- cogman10 3y agoThe main problem with floats in general is they are designed primarily for scientific computing. We are fortunately starting to see newer (well, not that new now) CPU instructions like FMA that make more accurate decimal representations not take such huge performance hits.
- adgjlsfhk1 3y agowhat does fma have to do with decimal numbers?
- cogman10 3y agoOh shoot, nvm, I thought it was an optimization for integers. Really it'll be the SIMD style instructions that speeds things up.