摘要:
#define EPSILON_E4 (float)(1E-4) #define EPSILON_E5 (float)(1E-5)#define EPSILON_E6 (float)(1E-6)#define CompareFloatA(a,b) ((fabs(a-b)<EPSILON_E4) ? 1 : 0)#define CompareFloatB(a,b) ((fabs(a-b)/a < EPSILON_E4 || fabs(a-b)/b < EPSILON_E4) ? 1 : 0)#define CompareFloatC(a,b) ((fabs(a-b)/a < 阅读全文