Much has been written about the elegance and ingenuity of IEEE 754. Rest assured, we won’t be doing that today.
4 comments
arcastroe1 day ago
Reminds me the "Wat" lightning talk I saw a few years ago:
kensabout 8 hours ago
If you want to know why some of these behaviors exist, see Kahan's "Lecture Notes on the Status of IEEE Standard 754 for Binary Floating-Point Arithmetic".
In particular, the reason that NaN != NaN but infinity == infinity is so there is a way to detect NaN in languages that lack isNaN().
https://web.archive.org/web/20260316121248/https://people.ee...
lifthrasiirabout 6 hours ago
More about language quirks around NaN except for the first few.
dmitrygr1 day ago
Glorious and very well written.
Read the full thread on Hacker News →
Related stories
- Lobsters · 3 points · 2 months ago
- Hacker News · 14 points · 2 months ago
- If It Floatsblog.coredump.cxLobsters · 8 points · about 16 hours ago
- Hacker News · 2 points · about 2 months ago
- Hacker News · 1 points · 2 months ago
- Yazi: Fast terminal file manager written in Rust, based on async I/Oyazi-rs.github.ioHacker News · 1 points · 2 months ago