In Java, how do we make a type double round UP to the nearest integer?
a= (b/ c);
If b is a double, (eg. 5.000053631), how would I be able to cast it to an integer type, with a value of 6 with and without the use of rounding methods, like ceil()?
I would need this to work no matter what the value of b may be.
1.3 should round to 2,
12345.22222 should round to 12346,
5678.0987 should round to 5679, etc...