1 Answer ... double roundOff = (double) Math.round(a * 100) / 100;. this will do it for you as well.
確定! 回上一頁