int closeQ = Integer.parseInt(closeQStr);
int trackQ = Integer.parseInt(trackQStr);
int openQ = Integer.parseInt(openQStr);
int total = closeQ + trackQ + openQ;
String percent = "0.00%";
if (total != 0) {
BigDecimal closeB = new BigDecimal(closeQ + ".0000");
BigDecimal totalB = new BigDecimal(total + ".0000");
double perc = closeB.divide(totalB, BigDecimal.ROUND_HALF_UP).doubleValue();
percent = (perc *100) + "%";
}
int trackQ = Integer.parseInt(trackQStr);
int openQ = Integer.parseInt(openQStr);
int total = closeQ + trackQ + openQ;
String percent = "0.00%";
if (total != 0) {
BigDecimal closeB = new BigDecimal(closeQ + ".0000");
BigDecimal totalB = new BigDecimal(total + ".0000");
double perc = closeB.divide(totalB, BigDecimal.ROUND_HALF_UP).doubleValue();
percent = (perc *100) + "%";
}