public void setPassRate(Double passRate) { DecimalFormat df = new DecimalFormat("#.00"); this.passRate = Double.valueOf(df.format(passRate)); }