为什么会输出 000,不应该输出 111 吗?
#include<bits/stdc++.h> using namespace std; int main() { double a=1/3*3; if((double)1-a<=(double)1e-9) { cout<<1; } else { cout<<0; } return 0; }