Skip to Content
0
Mar 11, 2010 at 02:44 PM

Division by zero

22 Views

Why is this not giving a dump?

i = 0.
  j = 0.
  num = i / j.

This doesnt dump too:

  num = 0 / 0.

But this dumps:

i = 1.
  j = 0.
  num = i / j.

Is this some kind of weired short cut evaluation? Or is 0/0 now defined since i finished school?

Seems that the runtime assumes that everything after 0 / is always zero. Debugging case 1 and two shows that num contains zero.

Is this behaviour documented?