Java中double型转化成int型时间:2022-08-09 14:53:03double power = (sum / 10.0 * m_iLevel) / 10000; // java中double型转化成int型,进行四舍五入操作: int tmp = Integer.parseInt(new java.text.DecimalFormat("0").format(power));