public void test_DivideBigDecimalRoundingModeUP(){
  String a="-37361671119238118911893939591735";
  String b="74723342238476237823787879183470";
  RoundingMode rm=RoundingMode.UP;
  String c="-1";
  BigDecimal aNumber=new BigDecimal(new BigInteger(a));
  BigDecimal bNumber=new BigDecimal(new BigInteger(b));
  BigDecimal result=aNumber.divide(bNumber,rm);
  assertEquals("incorrect value",c,result.toString());
}

public void test_DivideBigDecimalRoundingModeUP ( ) { String a = "-37361671119238118911893939591735" ; String b = "74723342238476237823787879183470" ; RoundingMode rm = RoundingMode . UP ; String c = "-1" ; BigDecimal aNumber = new BigDecimal ( new BigInteger ( a ) ) ; BigDecimal bNumber = new BigDecimal ( new BigInteger ( b ) ) ; BigDecimal result = aNumber . divide ( bNumber , rm ) ; assertEquals ( "incorrect value" , c , result . toString ( ) ) ; }
java . math . bigdecimal # divide ( java . math . bigdecimal , java . math . mathcontext ) divide ( bigdecimal , roundingmode )
