float f = 0.7; if( f == 0.7 ) printf("equal"); else printf("not equal");
为什么输出not equal?
not equal
为什么会这样?
c c++ floating-point double-precision
c ×1
c++ ×1
double-precision ×1
floating-point ×1