const float CHAZHI = 0.0000001;
float a = ...;
float b = ...;
float d = a - b;
if( d > CHAZHI)
{
printf("a > b");
}
else if( d < -CHAZHI)
printf("a < b");
else if(d <= fabs(CHAZHI))
printf("a = b");
更多信息請(qǐng)查看IT技術(shù)專欄
2025國(guó)考·省考課程試聽報(bào)名