1. Observe the C language data type length on your platform: Printf ("% d", sizeof (int)); // --- 4 Printf ("% d", sizeof (long)); // -4 Printf ("% D", sizeof (long long)); // --- 8 ... 2. Floating point is generally not directly sentenced (low efficiency), and the comparison is also considered for errors, typical floating point numbers Comparison: #define EPS 1e-6 // Defining EPS is a sufficiently small number, here is 1 ^ -6 INT FCMP (Double A, Double B) {IF (A> B EPS) Return 1; / / a> B IF (a