fork(5) download
  1. #include <iostream>
  2. #include <cstdio>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. double d1 = 1;
  9. double d2 = 1 + 1.110223024625156e-16;
  10. double d3 = 1 + 1.110223024625157e-16;
  11. cout << (d2 == d1) << endl;
  12. cout << (d3 == d1) << endl;
  13. return 0;
  14. }
Success #stdin #stdout 0s 2896KB
stdin
Standard input is empty
stdout
1
0