提問者採納: double i = 12.3659963; //設數值 int j = (int) Math. round(i * 100); // 小數點後兩位前移,並四捨五入 ...
wapiknow.baidu.com