HN Hall of Fame Weekly email

Floating point visually explained (2017)

fabiensanglard.net Books & learning Tutorials & guides Mathematics & science Class of 2021-11 Hall of Fame
Screenshot of fabiensanglard.net captured 2026-07-20
Page preview · captured 2026-07-20

Resurfaced independently across 5 calendar years, with breakout response in 2 of them.

submissions
9
submitters
8
observed span
2017–2025
peak thread · 106 comments
451 pts
latest 20+ return · 2021-11-28
288 pts

Submission timeline

2007–2026

One slot for every year since HN launched. Height is that year's peak points; orange marks a 100+ point or 50+ comment breakout. Select a bar to open its strongest thread.

First comments on top threads

HN comment order

Let's represent the number 42,643,192, or 10100010101010111011111000₂, in different "floating point" representations. Scientific notation with 5 significant figures: 4.2643 × 10⁷ Scientific notation in base 2 with 17 significant binary figures: 1.0100010101010111₂ × 2²⁵ Let's pack this in a fixed-length datatype. Note that 011001₂ is the binary encoding of 25. 1 0100010101010111 011001 1 mantissa exp. This doesn't suffice because a. We're wasting a bit on the leading 1. b. We want to support negative values. c. We…

Veedrac·451-point thread·

Why is everyone complaining about people finding floats hard? Sure, scientific notation is easy to grasp, but you can't honestly tell me that it's trivial AFTER you consider rounding modes, subnormals, etc. Maybe if hardware had infinite precision like the real numbers nobody would be complaining ;) One thing I dislike in discussions about floats is this incessant focus on the binary representation. The representation is NOT the essence of the number. Sure it matters if you are a hardware…

Sirenos·288-point thread·

The first top-level comment from each of the four biggest threads, in HN’s own order. Excerpts are shortened; open a comment for full context.

Breakout years
2

100+ points or 50+ comments

Total points
752

reference only — not used in Hall rules or ranking

Total comments
164

reference only — not used in Hall rules or ranking

Every submission

DateTitle as submittedByPointsComments
2017-08-30Floating Point Visually Explainedrinesh30
2017-09-06Floating Point Visually Explainedalxmdev10
2017-09-28Floating Point Visually ExplainedFirst breakout · Best threadalxmdev451106
2020-02-21Floating Point Visually Explainedsigna1120
2021-11-28Floating point visually explained (2017)Hall induction · Latest 20+ point returnluisha28857
2024-04-23Floating Point Visually ExplainedJoachimS20
2025-09-12Floating Point Visually Explained (2017)doppp20
2025-09-25Floating Point Visually Explainedfanf211
2025-11-08Floating Point Visually Explained (2017)porridgeraisin20