3 ms·
Good point. This is exactly what JavaScript does with NaN and the set of numbers, and errors are harder to track down because of it. Computer numbers in genera
by zachrose 8y ago
Good point. This is exactly what JavaScript does with NaN and the set of numbers, and errors are harder to track down because of it.
Computer numbers in general have all sorts of issues like this where clean mathematical theory is broken. NaN, Infinity and -Infinity, for example, are all similar to absorbing elements[1] under multiplication in the sense that once you get that as a result, you can't do the inverse operation (division) to get back to your original inputs.