Problem dividing doubles/floats
Keith Watford:
Show the code where you
a) Size the arrays.
b) assign values to the arrays and check that the value is not zero.
I've found the solution, I add a condition to check the value is not zero like you said, and doubling everything (again) just to make sure
if(SecondNumber > 0) Divider = double(FirstNumber)/double(SecondNumber);
Thank you
I searched about this problem but didn't found any similar problem, all of them have a problem from integer to doubles
UPDATE:
I changed the SecondNumber with any number, and it works
But when I changed the FirstNumber with any number, the error still occured
I also change the array count number for both FirstNumber and SecondNumber, but still showing the same error
NB: both variable was never 0