标签: java
要获得肯定的答案,我应该改变什么?
double a = 0.1; double b= 0.2; double c = a + b - 0.3; if (c == 0.0) { System.out.println("yes"); } else { System.out.println("no"); }