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技术专栏