fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3. #include <float.h>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.  
  9. if (10.0 == 10.0 + DBL_EPSILON) {
  10. std::cout << "10.0 == 10.00000000000000001";
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0s 3468KB
stdin
Standard input is empty
stdout
10.0 == 10.00000000000000001