I need C code to round a double value to the next largest integer value.
For example, if I have:
1.0 (double) it should be 1 (int)
1.01 (double) it should be 2 (int)
5.67 (double) it should be 6 (int)
76.43 (double) it should be 77 (int)
Is there a solution?
c double objective-c int rounding
CrazyDev
source share