double转int 丢失精度原因: Java中的简单浮点数类型float和double不能够进行运算。转换为DecimalFormat很可。 */ String str = "4.14"; int a = (int) (Double.
確定! 回上一頁