You don't have to be a wizard.
Any programmer should ensure that a zero denominator can "never" happen.
Whoever did that should have been fired as well as whomever was contracted
to review and test the code.
"Noah Little" wrote in message
...
niceguy wrote:
What idiot would attempt to divide by zero?
There is no "figure it out" as its not definable.
Every high school student is taught that.
You can be pretty sure it wasn't intentional. When you're programming
with variables, it can happen that one of them becomes zero due to
unforseen conditions. Of course, a wizardly programmer will both forsee
the possibility of those conditions and also include tests to trap
errors (like zeros in embarrassing places), but sometimes in the old
days memory was extremely tight, not permitting such "luxuries," and
then not all programmers are wizards.
--
Noah
|