DecimalFormat df = new DecimalFormat("#,###.00");
double size=10.00;
BigDecimal t=new BigDecimal(size);
df.format(t);
When I give size=0.00 output will be like ".00". Output should be "0.00", any suggestions?
DecimalFormat df = new DecimalFormat("#,###.00");
double size=10.00;
BigDecimal t=new BigDecimal(size);
df.format(t);
When I give size=0.00 output will be like ".00". Output should be "0.00", any suggestions?