public void test_BigDecimal0(){
  final BigDecimal[] a=new BigDecimal[]{new BigDecimal("0"),new BigDecimal("0."),new BigDecimal("0.0"),new BigDecimal("0.00"),new BigDecimal("00.0"),new BigDecimal("00.00"),new BigDecimal(".0")};
  for (  BigDecimal i : a) {
    i=i.stripTrailingZeros();
    if (log.isInfoEnabled())     log.info("i=" + i + "\t(scale="+ i.scale()+ ",prec="+ i.precision()+ ") : "+ dumpBigDecimal(i));
  }
  for (  BigDecimal i : a) {
    doEncodeDecodeTest(i);
  }
  for (int i=0; i < a.length; i++) {
    for (int j=0; j < a.length; j++) {
      doCompareTest(a[i],a[j],CompareEnum.EQ);
    }
  }
}

public void test_BigDecimal0 ( ) { final BigDecimal [ ] a = new BigDecimal [ ] { new BigDecimal ( "0" ) , new BigDecimal ( "0." ) , new BigDecimal ( "0.0" ) , new BigDecimal ( "0.00" ) , new BigDecimal ( "00.0" ) , new BigDecimal ( "00.00" ) , new BigDecimal ( ".0" ) } ; for ( BigDecimal i : a ) { i = i . stripTrailingZeros ( ) ; if ( log . isInfoEnabled ( ) ) log . info ( "i=" + i + "\t(scale=" + i . scale ( ) + ",prec=" + i . precision ( ) + ") : " + dumpBigDecimal ( i ) ) ; } for ( BigDecimal i : a ) { doEncodeDecodeTest ( i ) ; } for ( int i = 0 ; i < a . length ; i ++ ) { for ( int j = 0 ; j < a . length ; j ++ ) { doCompareTest ( a [ i ] , a [ j ] , CompareEnum . EQ ) ; } } }
test encode / decode for various values of zero .
