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 se
157/32 = 4.90625
157/32 is int/int, which results in an int.
int/int
int
Try using the double literal - 157/32d, which is int/double, which results in a double.
157/32d
int/double
double