What is the easiest way, using the least amount of unnecessary overhead to divide two BigInteger objects and store it in a BigDecimal Object?
I have been trying to work around the problem and cannot find anything that does not use an extremely excessive amount of conversions.
Edit: Realized how stupid this question was, I'll leave it up for reference though
You can convert your BigIntegers into BigDecimals:
// bigIntX is a BigInteger
BigDecimal bigDecX = new BigDecimal(bigIntX);
BigDecimal bigDecY = new BigDecimal(bigIntY);
// to divide:
bigDecX.divide(bigDecY);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With