BigDecimal bd= new BigDecimal("00.0000000000");
//now bd format to 0E-10
if(BigDecimal.ZERO.equals(bd) || bd.equals("0E-10"))
{
flag=true;
}
There are two problems in the above code
- why variable bd automatically format to 0E-10
- if condition results false value, ie it does not enter inside if block.
Can anyone suggest. thanks