Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
drv
· 9y ago · 0 comments
nextAfter is probably also including the denormals (an additional 2^23 values near 0).
Comments
[–]
mturmon
9y ago
Yep:
1,056,964,609 - 1,065,353,216 = 8388607 = 2^23 - 1
because the denormal that is all-zero is already present.
[–]
mark-r
9y ago
And the author explicitly stated he was excluding the denormals.