 |
Java rounding up to an int using Math.ceil - Stack Overflow
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 ...
stackoverflow.com |
 |