int与Double类型转换

        int totalFee = (int)(Double.parseDouble(paramMap.get("totalFee").toString())*100);

     int totalFee = (int)(Float.parseFloat(paramMap.get("totalFee").toString())*100);

第二种写的时候有时会使数据值变小;

原文地址:https://www.cnblogs.com/wwwcf1982603555/p/9244578.html