#include <iostream>

bool floatcmp(float a, float b) {
    //check NaN
    return !(a < b) && !(b < a);
}

int main() {
    using namespace std;
    
    float a = 0.1;
    float b = 0.1;

    // Just to be sure change is not inlined
    b += 1;
    cout << "B after increase = " << b << endl;
    b -= 1;
    cout << "B after decrease = " << b << endl;

    cout << "A " << (floatcmp(a, b) ? "equals" : "is not equal to") << "B" << endl;
    
    cout.precision(10);
    cout << "A = " << a << endl;
    cout << "B = " << b << endl;
}
