public static BigInteger exactDivide ( BigInteger dividend , BigInteger divisor ) { if ( divisor . signum ( ) == 0 ) { throw new ArithmeticException ( "BigInteger divide by zero" ) ; } return INSTANCE . get ( ) . exactDivImpl ( dividend , divisor ) ; }
Divide dividend by divisor . This method only returns correct answers when the division produces no remainder . Correct answers should not be expected when the divison would result in a remainder .