Method will generate the remainder also as the second(array) element of bigdecimal
Method throws Arithmetic Exception when the divisor value is equal to zero.
Syntax for using the method:
public BigDecimal divideAndRemainder(BigDecimal divisor)
bigdecimal_objectName = dividendName.divideAndRemainder(divisor)
Ask Questions? Discuss: Java BigDecimal divideAndRemainder example
Post your Comment
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.