public void testToEngineeringStringZeroPosExponent(){
  String a="0.0E+16";
  BigDecimal aNumber=new BigDecimal(a);
  String result="0E+15";
  assertEquals("incorrect value",result,aNumber.toEngineeringString());
}

public void testToEngineeringStringZeroPosExponent ( ) { String a = "0.0E+16" ; BigDecimal aNumber = new BigDecimal ( a ) ; String result = "0E+15" ; assertEquals ( "incorrect value" , result , aNumber . toEngineeringString ( ) ) ; }
convert a negative bigdecimal to an engineering string representation
