lets say you have a bunch of ints, and you want to find the average in a float, so you add them all together and divide by how many (25 in my case), but like do i need to cast the int to a float before dividing because i have
float ave;
int sum;
ave = sum / 25;
and the answer is never correct :-( i know this is a simple question but i think i was asleep when we went over it in class
thanks guys