Which is the "zero divide" line of code?

 

Can't see anything relevant when doing a search, but in case anyone knows the answer to this question:


Any quick way of zooming in on the "zero divide" line of code, apart from putting a whole bunch of Print statements?

 
Nope just printing
 

Look at all division operations around the area of problems, remove all division by constant values and symbolic constants.

Then, Check each divisor using variables.

In general it's best to avoid as much as possible the use of division operators.

 
blogzr3 wrote >>

Can't see anything relevant when doing a search, but in case anyone knows the answer to this question:

Any quick way of zooming in on the "zero divide" line of code, apart from putting a whole bunch of Print statements?

If you have a line of code like this...

c=a/b;

try using the if statement...it may do the trick...

if(b!=0)

c=a/b;

Reason: