I am using jxl-2.6.3.jar.
I want to display bigdecimals, which are up to 1 decimal point.
If i write like below, then 1.2 is displayed as "1.2" , but 1.0 appears as "1." . I need 0 as well in case of 1.0, i.e "1.0" instead of simply "1." .
BigDecimal number = new BigDecimal(1.0);
NumberFormat dp1 = new NumberFormat("#.#");
WritableCellFormat format = new WritableCellFormat(dp1);
workSheet.addCell(new Number(1, 1, number.doubleValue(),format));
Thanks