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?<
The easiest is to just add 0.5f to it and then cast this to an int.
0.5f