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
You can just cast one of them. It doesn't matter which one though.
Whenever the types don't match, the "smaller" type is automatically promoted to the "larger" type, with floating point being "larger" than integer types.