How can I convert a float to int while rounding up to the next integer? For example, 1.00001 would go to 2 and 1.9999 would go to 2.
float
int
Use ceil function:
int intValue = (int)ceil(yourValue);