fork(1) download
  1. #include <quadmath.h>
  2. #include <iostream>
  3.  
  4. using namespace std;
  5.  
  6. int main()
  7. {
  8. __float128 x = 7.0q;
  9. __float128 y = 6.9999999999999999q;
  10. bool result = x == y;
  11. cout << "x == 6.9999999999999999 : " << (result ? "true" : "false") << endl;
  12. return 0;
  13. }
Success #stdin #stdout 0s 3140KB
stdin
Standard input is empty
stdout
x == 6.9999999999999999 : false