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

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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