日期:2014-05-18 浏览次数:20788 次
public static void main(String[] args) { double money = 2; double price = 1.1; double result = money - price; System.out.println(money + "-" + price + "=" + result); //输出的结果为:2.0-1.1=0.8999999999999999 }