NumberFormat nf = NumberFormat.getNumberInstance();
nf.setMinimumFractionDigits(2); nf.setMaximumFractionDigits(2);
nf.format(doubleValue);

+ Recent posts