 |
Divide int's and round up in Objective-C - Stack Overflow
If your ints are A and B and you want to have ceil(A/B) just calculate (A+B-1)/B . ... What about: float A,B; // this variables have to be floats! int result = floor(A/B); ...
stackoverflow.com |
 |