Question: ```
int total = (int) Math.ceil(157/32);

```

Why does it still return 4? `157/32 = 4.90625`, I need to round up, I've looked around and this seems to be the right method.

I tried `total` as `double` type, but get 4.0.

What am I doing wrong?

Answer: 
```
int total = (int) Math.ceil( (double)157/ (double) 32);

```
```
int total = (157-1)/32 + 1

```

or more general

```
(a-1)/b +1 

```