Daniel Lemire personal blog
How many floating-point numbers are in the interval [0,1]?
Most commodity processors support single-precision IEEE 754 floating-point numbers. Though they are ubiquitous, they are often misunderstood. One of my readers left a comment suggesting that picking an integer in [0,232) at random and dividing it by 232, was equivalent to picking a number at random in [0,1). I am not…
- Points
- 200
- HN comments
- 219
- Submissions
- 2
- Cited by
- 4 commenters
Math & AlgorithmsSoftware Engineering2017
On Hacker News
| Submitted | Title on HN | Points | Comments |
|---|---|---|---|
| Feb 28, 2017 | How many floating-point numbers are in the interval [0,1]? by mgdo | 200 | 153 |
| Apr 15, 2023 | How many floating-point numbers are in the interval [0,1]? (2017) by burntcaramel | 113 | 66 |
Cited in comments
Linked from 5 Hacker News comments by 4 different people, from Mar 2017 to Jun 2025.
Most recent:
- j_not_j · Jun 2, 2025
- FabHK · May 7, 2025
- peterhull90 · Aug 29, 2024
- keithnz · Feb 21, 2018
- keithnz · Mar 31, 2017