how to cast an int into a double in c code example Example: int to double c int vIn = 0; double vOut = (double)vIn;