public void testLongValueNeg(){
  String a="-123809648392384754573567356745735.63567890295784902768787678287E+21";
  BigDecimal aNumber=new BigDecimal(a);
  long result=-1246043477766677607L;
  assertTrue("incorrect value",aNumber.longValue() == result);
}

public void testLongValueNeg ( ) { String a = "-123809648392384754573567356745735.63567890295784902768787678287E+21" ; BigDecimal aNumber = new BigDecimal ( a ) ; long result = - 1246043477766677607L ; assertTrue ( "incorrect value" , aNumber . longValue ( ) == result ) ; }
long value of a negative bigdecimal
