I am trying to calculate a percentage for first pass yield but divide is not working and is returning a zero
double FirstPassYield = ((RowTotal - DefectCount) / RowTotal) * 100;
I tried individual calculations and they work except when I use divide. I even took to random numbers and divided them and still get a 0. I an not sure way divide keeps returning a 0