Given the following conditions:
I need to find
the minimum value of x such that
b2 * x > b1
For example, if all values - Integer, than:
if ( b1%b2 == 0 ) {
x = b1/b2;
} else {
x = b1/b2 +1;
}
You could use
BigInteger x = b1.divide(b2, 0, RoundingMode.CEILING).toBigInteger()