Hi, You need to type cast the expression to float like the following: float aspectRatio = (float)1280 / 1024; MessageBox.Show(aspectRatio.ToString()); Or float aspectRatio = (float)1280 / 500; MessageBox.Show(aspectRatio.ToString()); This will fix the issue.
Regards, John Adams ComponentOne LLC