public void testDoubleValueNegInfinity(){
  String a="-123809648392384754573567356745735.63567890295784902768787678287E+400";
  BigDecimal aNumber=new BigDecimal(a);
  double result=Double.NEGATIVE_INFINITY;
  assertEquals("incorrect value",result,aNumber.doubleValue(),0);
}

public void testDoubleValueNegInfinity ( ) { String a = "-123809648392384754573567356745735.63567890295784902768787678287E+400" ; BigDecimal aNumber = new BigDecimal ( a ) ; double result = Double . NEGATIVE_INFINITY ; assertEquals ( "incorrect value" , result , aNumber . doubleValue ( ) , 0 ) ; }
double value of a large negative bigdecimal
