1
我得到一個異常「無法解析53.6作爲一個整數」。什麼是適當的格式?爲什麼Integer.parseInt(「53.6」)失敗?
double dbval;
double temp_val=12;
double p = 1.8;
double fvalue =p;
temp_val = temp_val * fvalue;
temp_val = (temp_val + 32);
String dbcal1=Double.toString(temp_val);
dbval = Integer.parseInt(dbcal1);
System.out.println("dbval"+dbval);