fork 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 " << DBL_EPSILON;
  11. }
  12.  
  13. return 0;
  14. }
Success #stdin #stdout 0.01s 5260KB
stdin
Standard input is empty
stdout
10.0 == 10.00000000000000001 2.22045e-16