經安全檢測,此網站為安全網站,請放心前往原始網址!

Round a float up to the next integer in objective C? - Stack Overflow

1.1 -> 2 2.3 -> 3 3.4 -> 4 3.5 -> 4 3.6 -> 4 1.0000000001 -> 2 ... You want the ceiling function. Used like so: float roundedup = ceil(otherfloat); ... Use the ceil() ...

stackoverflow.com

網址安全性掃描由 google 提供