Question: I was curious to know how I can round a number to the nearest whole number. For instance, if I had:

```
int a = 59 / 4;

```

which would be 14.75 if calculated in floating point; how can I store the result as 15 in "a"?

Answer: 
```
int a, b;
int c = a / b;
if(a % b) { c++; }

```

Checking if there is a remainder allows you to manually roundup the quotient of integer division.
Safer C code (unless you have other methods of handling /0):

`return (_divisor > 0) ? ((_dividend + (_divisor - 1)) / _divisor) : _dividend;`

This doesn't handle the problems that occur from having an incorrect return value as a result of your invalid input data, of course.