5 ms·
Numerical zero has nothing to do with the issue discussed here. What you are proposing is to add another “number” to types like int and float that results in th
by fhars 7y ago
Numerical zero has nothing to do with the issue discussed here. What you are proposing is to add another “number” to types like int and float that results in the program crashing whenever you try to add it to another number.
- agumonkey 7y agoI think it does
- strictfp 7y agoIt does! It's the numerical "null object", just like the empty string and empty collection.
- reificator 7y ago> What you are proposing is to add another “number” to types like int and float that results in the program crashing whenever you try to add it to another number. There's already division by zero and NaN to trip you up in IEEE754.
- goatlover 7y agoOr there's NaN which just results in NaN and doesn't equal itself. No need to crash.