1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* * Rule: FLP00-C * Source: wiki * Status: FAIL - Direct equality comparison of floating-point values */ #include <math.h> int check_result(void) { float c = 3.14f; if (c == 3.14f) { return 1; } return 0; }