this post was submitted on 30 Jul 2026
179 points (97.9% liked)
Memes
56837 readers
846 users here now
Rules:
- Be civil and nice.
- Try not to excessively repost, as a rule of thumb, wait at least 2 months to do it if you have to.
founded 7 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
they could have used two’s complement for the exponent, but the biased exponent is objectively a better encoding for what floating point hardware needs to do.
This is paraphrased like mad, but basically that means hardware can compare exponent fields as plain unsigned integers. With twos complement, unsigned comparison says 255 > 1, even though -1 < 1. So every comparison would need special signed comparison logic.
Gotcha, very cool!