int totalFee = (int)(Double.parseDouble(paramMap.get("totalFee").toString())*100);
int totalFee = (int)(Float.parseFloat(paramMap.get("totalFee").toString())*100);
第二種寫的時候有時會使數據值變小;
int totalFee = (int)(Double.parseDouble(paramMap.get("totalFee").toString())*100);
int totalFee = (int)(Float.parseFloat(paramMap.get("totalFee").toString())*100);
第二種寫的時候有時會使數據值變小;
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。