3 ms·
When there is no reasonable result to return does it really matter what result is returned? 1 / 0 == 0 is about the same as 1 / 0 == 3. To avoid this just don't
by wan23 8y ago
When there is no reasonable result to return does it really matter what result is returned? 1 / 0 == 0 is about the same as 1 / 0 == 3. To avoid this just don't do 1 / 0 in your program.
- lmm 8y ago> 1 / 0 == 0 is about the same as 1 / 0 == 3 Sure, and both are bad. > To avoid this just don't do 1 / 0 in your program. If you're going to avoid doing it, better to have it throw an exception if you do it by accident.