用Double.parseDouble()是把括号里面内容变成double类型的。 如果要变成int,则用Integer.parseInt() //小数 BigDecimal bd=new BigDecimal(“2.2”);