//小数加减乘除用BigDecimal BigDecimal b1 = new BigDecimal("3.14"); BigDecimal b2 = new BigDecimal("0.37"); BigDecimal b3 = b1.add(b2);// BigDecimal b4 = b1.subtract(b2);// BigDecimal b5 = b1.multiply(b2); System.out.println("3.14 + 0.37 = " + b3); System.out.println("3.14 - 0.37 = " + b4); System.out.println("3.14 * 0.37 = " + b5); double d = new BigDecimal(2).divide( new BigDecimal(100)).doubleValue(); System.out.println(d); System.out.println(new BigDecimal("2").multiply(new BigDecimal(d+""))); System.out.println(11.66*0.02);