Method will generate the remainder also as the second(array[1]) element of bigdecimal
array[].
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)
Java_divideAndRemainder_BigDecimal_divisor.java
import java.math.BigDecimal;
|
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.
Ask Questions? Discuss: Java BigDecimal divideAndRemainder example
Post your Comment