java 中double型转化成int型

 一个变量 double x;java 不进行四舍五入操做: (int)x 进行四舍五入操做: Integer.parseInt(new java.text.DecimalFormat("0").format(x))  
相关文章
相关标签/搜索