For example, when I\'m dividing two ints and want a float returned, I superstitiously write something like this:
int a = 2, b = 3; float c = (float)a / (floa
I think as long as you are casting just one of the two variables the compiler will behave properly (At least on the compilers that I know).
So all of:
float c = (float)a / b;
float c = a / (float)b;
float c = (float)a / (float)b;
will have the same result.