Did you even read what its telling you? Fist its a warning, not an error. You can compile it with warnings. And the warning is telling you that if you convert from a float to an int your going to loss the decimals. I recommend you going over the basics of programming