Java. Showing double in appropriate format

        DecimalFormat dec = new DecimalFormat("##,###,###.##");
        dec.setMinimumFractionDigits(2);
        String credits = dec.format(productDescription.getPrice());
        holder.price.setText(credits);
        dec = new DecimalFormat("#####.##");
        credits = dec.format(productDescription.getQuantity());