In C#, how do I round a float upwards to the nearest int?
I see Math.Ceiling and Math.Round, but these returns a decimal. Do I use one of these then cast to an Int?<
You can cast to an int provided you are sure it's in the range for an int (Int32.MinValue to Int32.MaxValue).