I have 2 int\'s. How do I divide one by the other and then round up afterwards?
As in C, you can cast both to float and then round the result using a rounding function that takes a float as input.
int a = 1; int b = 2; float result = (float)a / (float)b; int rounded = (int)(result+0.5f); i