Re:How many floating-point numbers are in the interval [0,1]?
by digga3000 on Wednesday March 01, 2017 @07:02PM
(#13770006)
the question is [0, 1] so wouldn't that include +/-0 and 1, so 3 more?
[ Parent
| on HN ]
Re:How many floating-point numbers are in the interval [0,1]?
by jacobolus on Wednesday March 01, 2017 @07:13PM
(#13770103)
Probably shouldn’t include –0, which is used to represent underflow of negative numbers.
Re:How many floating-point numbers are in the interval [0,1]?
by vog on Thursday March 02, 2017 @03:38AM
(#13772615)
Why 3 more? Grandparent already counted one of the border points, so the correct number is either 1 more or 2 more, depending on whether you consider the floating point number -0 to be in the closed interval [0,1] or not.
See my other posting for more details: https://news.ycombinator.com/item?id=13772578