private String getRate(Integer a, Integer b) { DecimalFormat df = new DecimalFormat("0.0"); return df.format((float) a / b); }