I executed the following C++ code and get the answer "Not the same? Weird.....". Originally I expected to get "Of course, they are the same!!!". I was using Dev-C++ 5.11.
#include <iostream>
using namespace std;
int main() {
    float p;
    p = 0.3;
    if ((p-0.3)==0)
        cout << "Of course, they are the same !!!\n";
    else
        cout << "Not the same? Weird.....\n";
    return 0;
}
 
    