可能重复: 与float文字的float比较中的奇怪输出
float a = 0.7; if (a < 0.7) ;
为什么这里的表达式评估为真?
c c++ floating-point
c ×1
c++ ×1
floating-point ×1