3 ms·
I gave examples of floating computation that doesn't involve rounding. A lot of programs depend on it; Javascript ones in particular. In fact, in a case like `r
by Veedrac 11y ago
I gave examples of floating computation that doesn't involve rounding. A lot of programs depend on it; Javascript ones in particular. In fact, in a case like `random() -> [0, 1)`, one often relies on the exactness of the bounds.
Rather than thinking of a float as some range of values, you should think of it as a randomized sample inside some (probably unknown) range.