Round a float up to the next integer in objective C?
You want the ceiling function. Used like so:
float roundedup = ceil(otherfloat);
Use the ceil()
function.
Someone did a little math in Objective C writeup here: http://webbuilders.wordpress.com/2009/04/01/objective-c-math/