我完全理解为什么由于浮点数导致0.1 + 0.2不等于0.3。在大多数编程语言中,0.1 + 0.2 == 0.3是False。
0.1 + 0.2 == 0.3
False
但在Excel中if(0.1 + 0.2 == 0.3; 1; 0)给出1
if(0.1 + 0.2 == 0.3; 1; 0)
floating-point excel
excel ×1
floating-point ×1