可能重复: 可能导致精度损失的不同行为
int testing = 0; testing += 2.0
上面的代码编译.
在哪里
int testing = 0; testing = testing + 2.0;
此代码无法编译.知道为什么吗?
java
java ×1