public double oneAfterPoint(double d){ String strD = String.valueOf(d*10); String[] strArr = strD.split("\\."); return Double.parseDouble(strArr[0])/10; }