3 ms·
I deep dove into ieee754 binary and decimal float (DPD and BID) while researching how to compress floating point values [1]. For 25 years it had been a magic bl
by kstenerud 7y ago
I deep dove into ieee754 binary and decimal float (DPD and BID) while researching how to compress floating point values [1]. For 25 years it had been a magic black box that I couldn't trust for comparisons or printing, but now I get it. I get why it happened this way, what the benefits were, how to mitigate against its weirdness, and why ultimately decimal float needs to replace binary float in future. It's definitely worth learning.
https://github.com/kstenerud/compact-float/blob/master/compact-float-specification.md https://github.com/kstenerud/compact-float/blob/master/compa...