The following is taken from some lecture notes on Monte Carlo methods:

I have never seen in anywhere else that we can treat $0/0=1$. Why it is okay to do it here?
The following is taken from some lecture notes on Monte Carlo methods:

I have never seen in anywhere else that we can treat $0/0=1$. Why it is okay to do it here?