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");
更多信息请查看IT技术专栏
2025公考·省考培训课程试听预约报名