In my Xna game, I am trying to have my playfield scale to the screen that it is running on. To do this, I use proportions to find the percent that the real window is scaled rela
try this float _percent = _realViewport.Width * 1.0/ (float)this._viewport.Width;,by adding multiplication by 1.0, the integer will automatically convert to float.