我有以下代码:
double x = 0; { ...do stuff ...} if(x == 0){ }
我总是被告知你不应该检查花车是否平等.检查它是否等于零任何不同?
java floating-point
floating-point ×1
java ×1