public void testDivideLargeScale(){
  BigDecimal arg1=new BigDecimal("320.0E+2147483647");
  BigDecimal arg2=new BigDecimal("6E-2147483647");
  try {
    BigDecimal result=arg1.divide(arg2,Integer.MAX_VALUE,java.math.RoundingMode.CEILING);
    fail("Expected ArithmeticException when dividing with a scale that's too large");
  }
 catch (  ArithmeticException e) {
  }
}

public void testDivideLargeScale ( ) { BigDecimal arg1 = new BigDecimal ( "320.0E+2147483647" ) ; BigDecimal arg2 = new BigDecimal ( "6E-2147483647" ) ; try { BigDecimal result = arg1 . divide ( arg2 , Integer . MAX_VALUE , java . math . RoundingMode . CEILING ) ; fail ( "Expected ArithmeticException when dividing with a scale that's too large" ) ; } catch ( ArithmeticException e ) { } }
bigdecimal . divide with a scale that ' s too large regression test for harmony - 6271
