You just need to caste the int to float like this: float x = (float)y; // y is an int Alternatively you could just have multiplied y with 1.0 and then store ...
確定! 回上一頁