double power = (sum / 10.0 * m_iLevel) / 10000;
// java中double型转化成int型,进行四舍五入操作:
int tmp = Integer.parseInt(new java.text.DecimalFormat("0").format(power));
double power = (sum / 10.0 * m_iLevel) / 10000;
// java中double型转化成int型,进行四舍五入操作:
int tmp = Integer.parseInt(new java.text.DecimalFormat("0").format(power));